Fix reporting of TLS connection errors
Fix reporting of TLS connection errors

The code for connecting to a server tries each socket in turn
until it finds one that connects. Unfortunately for TLS sockets
if it connected, but failed TLS handshake it would treat that
as a failure to connect, and try the next socket. This is bad,
it should have reported the TLS failure immediately.

$ virsh -c qemu://somehost.com/system
error: unable to connect to libvirtd at 'somehost.com': Invalid argument
error: failed to connect to the hypervisor

$ ./tools/virsh -c qemu://somehost.com/system
error: server certificate failed validation: The certificate hasn't got a known issuer.
error: failed to connect to the hypervisor

 * src/remote/remote_driver.c: Stop trying to connect if the
   TLS handshake fails

amery/libvirt-vserver,dumbbell/libvirt,VenkatDatta/libvirt,rmarwaha/libvirt1,rmarwaha/libvirt,jfehlig/libvirt,taget/libvirt,iam-TJ/libvirt,iam-TJ/libvirt,jardasgit/libvirt,soulxu/libvirt-xuhj,iam-TJ/libvirt,fabianfreyer/libvirt,olafhering/libvirt,warewolf/libvirt,elmarco/libvirt,leilihh/libvirt,sshah-solarflare/Libvirt-PCI-passthrough-,emaste/libvirt,libvirt/libvirt,taget/libvirt,zhlcindy/libvirt-1.1.4-maintain,nertpinx/libvirt,crobinso/libvirt,jfehlig/libvirt,VenkatDatta/libvirt,shugaoye/libvirt,andreabolognani/libvirt,andreabolognani/libvirt,wiedi/libvirt,siboulet/libvirt-openvz,soulxu/libvirt-xuhj,olafhering/libvirt,dumbbell/libvirt,crobinso/libvirt,rbu/libvirt,leilihh/libvirt,andreabolognani/libvirt,eskultety/libvirt,sshah-solarflare/Libvirt-PCI-passthrough-,trainstack/libvirt,wiedi/libvirt,eskultety/libvirt,rmarwaha/libvirt,foomango/libvirt,libvirt/libvirt,warewolf/libvirt,agx/libvirt,agx/libvirt,emaste/libvirt,cbosdo/libvirt,amery/libvirt-vserver,rlaager/libvirt,cbosdo/libvirt,siboulet/libvirt-openvz,datto/libvirt,rmarwaha/libvirt1,rmarwaha/libvirt1,novel/fbsd-libvirt,iam-TJ/libvirt,warewolf/libvirt,bjzhang/libvirt,trainstack/libvirt,elmarco/libvirt,danwent/libvirt-ovs,jardasgit/libvirt,agx/libvirt,iam-TJ/libvirt,usc-isi/libvirt,novel/fbsd-libvirt,wiedi/libvirt,wiedi/libvirt,rmarwaha/libvirt,VenkatDatta/libvirt,zippy2/libvirt,warewolf/libvirt,danwent/libvirt-ovs,eskultety/libvirt,fabianfreyer/libvirt,foomango/libvirt,nertpinx/libvirt,amery/libvirt-vserver,nertpinx/libvirt,rlaager/libvirt,danwent/libvirt-ovs,zhlcindy/libvirt-1.1.4-maintain,jardasgit/libvirt,rbu/libvirt,rlaager/libvirt,emaste/libvirt,jardasgit/libvirt,danwent/libvirt-ovs,novel/fbsd-libvirt,usc-isi/libvirt,kantai/libvirt-vfork,elmarco/libvirt,taget/libvirt,shugaoye/libvirt,nertpinx/libvirt,siboulet/libvirt-openvz,nertpinx/libvirt,jeckersb/libvirt,elmarco/libvirt,usc-isi/libvirt,datto/libvirt,trainstack/libvirt,warewolf/libvirt,novel/fbsd-libvirt,kantai/libvirt-vfork,jeckersb/libvirt,libvirt/libvirt,rbu/libvirt,dumbbell/libvirt,shugaoye/libvirt,zippy2/libvirt,siboulet/libvirt-openvz,jeckersb/libvirt,VenkatDatta/libvirt,jardasgit/libvirt,trainstack/libvirt,trainstack/libvirt,zippy2/libvirt,iam-TJ/libvirt,rmarwaha/libvirt,zhlcindy/libvirt-1.1.4-maintain,cbosdo/libvirt,cbosdo/libvirt,rmarwaha/libvirt,emaste/libvirt,kantai/libvirt-vfork,jfehlig/libvirt,warewolf/libvirt,dumbbell/libvirt,usc-isi/libvirt,foomango/libvirt,trainstack/libvirt,iam-TJ/libvirt,novel/fbsd-libvirt,sshah-solarflare/Libvirt-PCI-passthrough-,foomango/libvirt,emaste/libvirt,datto/libvirt,sshah-solarflare/Libvirt-PCI-passthrough-,andreabolognani/libvirt,datto/libvirt,siboulet/libvirt-openvz,novel/fbsd-libvirt,libvirt/libvirt,eskultety/libvirt,crobinso/libvirt,cbosdo/libvirt,rmarwaha/libvirt,novel/fbsd-libvirt,bjzhang/libvirt,datto/libvirt,leilihh/libvirt,novel/fbsd-libvirt,foomango/libvirt,wiedi/libvirt,novel/fbsd-libvirt,dumbbell/libvirt,zhlcindy/libvirt-1.1.4-maintain,sshah-solarflare/Libvirt-PCI-passthrough-,olafhering/libvirt,bjzhang/libvirt,rmarwaha/libvirt1,zhlcindy/libvirt-1.1.4-maintain,jeckersb/libvirt,dumbbell/libvirt,rmarwaha/libvirt1,soulxu/libvirt-xuhj,danwent/libvirt-ovs,bjzhang/libvirt,fabianfreyer/libvirt,rbu/libvirt,jeckersb/libvirt,leilihh/libvirt,jeckersb/libvirt,leilihh/libvirt,taget/libvirt,warewolf/libvirt,olafhering/libvirt,rlaager/libvirt,kantai/libvirt-vfork,jeckersb/libvirt,andreabolognani/libvirt,kantai/libvirt-vfork,elmarco/libvirt,rbu/libvirt,soulxu/libvirt-xuhj,leilihh/libvirt,amery/libvirt-vserver,taget/libvirt,agx/libvirt,fabianfreyer/libvirt,zippy2/libvirt,shugaoye/libvirt,bjzhang/libvirt,amery/libvirt-vserver,agx/libvirt,soulxu/libvirt-xuhj,jfehlig/libvirt,crobinso/libvirt,rlaager/libvirt,VenkatDatta/libvirt,rmarwaha/libvirt1,eskultety/libvirt,usc-isi/libvirt,fabianfreyer/libvirt,emaste/libvirt,trainstack/libvirt,shugaoye/libvirt,wiedi/libvirt,emaste/libvirt,wiedi/libvirt