phyp: Fix NULL dereference in phypConnectOpen
phyp: Fix NULL dereference in phypConnectOpen

Coverity found out that commit cd490086 caused a possible NULL pointer
dereference.  This is due to the fact, that phyp_driver is NULL at the
time of closing the socket, instead of connection_data, which kept the
socket before the mentioned commit, could not be NULL.

However, internal_socket is still the local socket that can be
closed, even unconditionally, if we initialize it to -1.

Signed-off-by: Martin Kletzander <e82f23e74d43760279ebcc505dac4ae70d5627d0@redhat.com>

fabianfreyer/libvirt,fabianfreyer/libvirt,datto/libvirt,datto/libvirt,jardasgit/libvirt,agx/libvirt,eskultety/libvirt,taget/libvirt,nertpinx/libvirt,crobinso/libvirt,rlaager/libvirt,taget/libvirt,agx/libvirt,shugaoye/libvirt,jfehlig/libvirt,fabianfreyer/libvirt,andreabolognani/libvirt,elmarco/libvirt,olafhering/libvirt,zippy2/libvirt,taget/libvirt,agx/libvirt,VenkatDatta/libvirt,jfehlig/libvirt,datto/libvirt,eskultety/libvirt,rlaager/libvirt,agx/libvirt,elmarco/libvirt,nertpinx/libvirt,crobinso/libvirt,eskultety/libvirt,elmarco/libvirt,jardasgit/libvirt,taget/libvirt,zippy2/libvirt,zippy2/libvirt,libvirt/libvirt,elmarco/libvirt,libvirt/libvirt,libvirt/libvirt,shugaoye/libvirt,crobinso/libvirt,taget/libvirt,andreabolognani/libvirt,datto/libvirt,VenkatDatta/libvirt,crobinso/libvirt,jardasgit/libvirt,olafhering/libvirt,fabianfreyer/libvirt,eskultety/libvirt,fabianfreyer/libvirt,jfehlig/libvirt,jfehlig/libvirt,rlaager/libvirt,jardasgit/libvirt,VenkatDatta/libvirt,eskultety/libvirt,jardasgit/libvirt,rlaager/libvirt,zippy2/libvirt,shugaoye/libvirt,VenkatDatta/libvirt,libvirt/libvirt,olafhering/libvirt,datto/libvirt,shugaoye/libvirt,shugaoye/libvirt,olafhering/libvirt,elmarco/libvirt,VenkatDatta/libvirt,nertpinx/libvirt,agx/libvirt,andreabolognani/libvirt,nertpinx/libvirt,andreabolognani/libvirt,andreabolognani/libvirt,nertpinx/libvirt,rlaager/libvirt