Set conn->driver before running driver connectOpen method
Set conn->driver before running driver connectOpen method

The access control checks in the 'connectOpen' driver method
will require 'conn->driver' to be non-NULL. Set this before
running the 'connectOpen' method and NULL-ify it again on
failure.

Signed-off-by: Daniel P. Berrange <bb938cf255e055ff3507f2627d214e8e62118fcf@redhat.com>

datto/libvirt,taget/libvirt,taget/libvirt,crobinso/libvirt,zhlcindy/libvirt-1.1.4-maintain,agx/libvirt,elmarco/libvirt,taget/libvirt,jardasgit/libvirt,elmarco/libvirt,nertpinx/libvirt,datto/libvirt,shugaoye/libvirt,VenkatDatta/libvirt,shugaoye/libvirt,fabianfreyer/libvirt,libvirt/libvirt,VenkatDatta/libvirt,jfehlig/libvirt,jardasgit/libvirt,datto/libvirt,zippy2/libvirt,andreabolognani/libvirt,jardasgit/libvirt,crobinso/libvirt,zippy2/libvirt,datto/libvirt,shugaoye/libvirt,zhlcindy/libvirt-1.1.4-maintain,datto/libvirt,nertpinx/libvirt,agx/libvirt,eskultety/libvirt,shugaoye/libvirt,olafhering/libvirt,elmarco/libvirt,cbosdo/libvirt,olafhering/libvirt,rlaager/libvirt,VenkatDatta/libvirt,eskultety/libvirt,crobinso/libvirt,rlaager/libvirt,shugaoye/libvirt,VenkatDatta/libvirt,rlaager/libvirt,libvirt/libvirt,cbosdo/libvirt,olafhering/libvirt,agx/libvirt,zhlcindy/libvirt-1.1.4-maintain,eskultety/libvirt,nertpinx/libvirt,andreabolognani/libvirt,elmarco/libvirt,nertpinx/libvirt,elmarco/libvirt,fabianfreyer/libvirt,olafhering/libvirt,taget/libvirt,cbosdo/libvirt,zippy2/libvirt,fabianfreyer/libvirt,agx/libvirt,VenkatDatta/libvirt,andreabolognani/libvirt,libvirt/libvirt,rlaager/libvirt,andreabolognani/libvirt,jfehlig/libvirt,jardasgit/libvirt,crobinso/libvirt,libvirt/libvirt,eskultety/libvirt,jfehlig/libvirt,cbosdo/libvirt,eskultety/libvirt,agx/libvirt,nertpinx/libvirt,andreabolognani/libvirt,zippy2/libvirt,rlaager/libvirt,fabianfreyer/libvirt,zhlcindy/libvirt-1.1.4-maintain,jardasgit/libvirt,fabianfreyer/libvirt,taget/libvirt,zhlcindy/libvirt-1.1.4-maintain,cbosdo/libvirt,jfehlig/libvirt