]> git.sur5r.net Git - openldap/commitdiff
ITS#6386 Must init conn->lconn_server
authorHoward Chu <hyc@openldap.org>
Wed, 18 Nov 2009 22:23:14 +0000 (22:23 +0000)
committerHoward Chu <hyc@openldap.org>
Wed, 18 Nov 2009 22:23:14 +0000 (22:23 +0000)
libraries/libldap/open.c

index c2b4818d9cfeb23b0f14110c10d8cb8756a4112b..85a22be4fc6c96561146495e2dadd7c64436333d 100644 (file)
@@ -271,6 +271,7 @@ ldap_init_fd(
                ldap_unbind_ext( ld, NULL, NULL );
                return( LDAP_NO_MEMORY );
        }
+       conn->lconn_server = ldap_url_dup( ld->ld_options.ldo_defludp );
        ber_sockbuf_ctrl( conn->lconn_sb, LBER_SB_OPT_SET_FD, &fd );
        ld->ld_defconn = conn;
        ++ld->ld_defconn->lconn_refcnt; /* so it never gets closed/freed */