mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
ITS#6386 Must init conn->lconn_server
This commit is contained in:
parent
ffb06848ff
commit
a248701ed2
@ -271,6 +271,7 @@ ldap_init_fd(
|
|||||||
ldap_unbind_ext( ld, NULL, NULL );
|
ldap_unbind_ext( ld, NULL, NULL );
|
||||||
return( LDAP_NO_MEMORY );
|
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 );
|
ber_sockbuf_ctrl( conn->lconn_sb, LBER_SB_OPT_SET_FD, &fd );
|
||||||
ld->ld_defconn = conn;
|
ld->ld_defconn = conn;
|
||||||
++ld->ld_defconn->lconn_refcnt; /* so it never gets closed/freed */
|
++ld->ld_defconn->lconn_refcnt; /* so it never gets closed/freed */
|
||||||
|
Loading…
Reference in New Issue
Block a user