Commit 67708b3d authored by Howard Chu's avatar Howard Chu Committed by Quanah Gibson-Mount
Browse files

ITS#7207 check for ld->ld_defconn

parent d67a54eb
......@@ -419,7 +419,7 @@ ldap_int_sasl_bind(
LDAP_MUTEX_LOCK( &ld->ld_conn_mutex );
ber_sockbuf_ctrl( ld->ld_sb, LBER_SB_OPT_GET_FD, &sd );
if ( sd == AC_SOCKET_INVALID ) {
if ( sd == AC_SOCKET_INVALID || !ld->ld_defconn ) {
/* not connected yet */
rc = ldap_open_defconn( ld );
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment