From: Howard Chu Date: Wed, 18 Nov 2009 22:23:14 +0000 (+0000) Subject: ITS#6386 Must init conn->lconn_server X-Git-Tag: ACLCHECK_0~101 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a248701ed2fcecc77213647c72eb20f0b8eda605;p=openldap ITS#6386 Must init conn->lconn_server --- diff --git a/libraries/libldap/open.c b/libraries/libldap/open.c index c2b4818d9c..85a22be4fc 100644 --- a/libraries/libldap/open.c +++ b/libraries/libldap/open.c @@ -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 */