mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
ITS#3359: fix crash on recursive rebind following referral
This commit is contained in:
parent
275ee6f13d
commit
1b5c5da96d
@ -243,10 +243,12 @@ wait4msg(
|
|||||||
|
|
||||||
#ifdef LDAP_DEBUG
|
#ifdef LDAP_DEBUG
|
||||||
if ( timeout == NULL ) {
|
if ( timeout == NULL ) {
|
||||||
Debug( LDAP_DEBUG_TRACE, "wait4msg (infinite timeout), msgid %d\n",
|
Debug( LDAP_DEBUG_TRACE,
|
||||||
|
"wait4msg (infinite timeout), msgid %d\n",
|
||||||
msgid, 0, 0 );
|
msgid, 0, 0 );
|
||||||
} else {
|
} else {
|
||||||
Debug( LDAP_DEBUG_TRACE, "wait4msg (timeout %ld sec, %ld usec), msgid %d\n",
|
Debug( LDAP_DEBUG_TRACE,
|
||||||
|
"wait4msg (timeout %ld sec, %ld usec), msgid %d\n",
|
||||||
(long) timeout->tv_sec, (long) timeout->tv_usec, msgid );
|
(long) timeout->tv_sec, (long) timeout->tv_usec, msgid );
|
||||||
}
|
}
|
||||||
#endif /* LDAP_DEBUG */
|
#endif /* LDAP_DEBUG */
|
||||||
@ -302,7 +304,7 @@ wait4msg(
|
|||||||
{
|
{
|
||||||
ld->ld_errno = (rc == -1 ? LDAP_SERVER_DOWN :
|
ld->ld_errno = (rc == -1 ? LDAP_SERVER_DOWN :
|
||||||
LDAP_TIMEOUT);
|
LDAP_TIMEOUT);
|
||||||
return( rc );
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( rc == -1 ) {
|
if ( rc == -1 ) {
|
||||||
@ -351,7 +353,7 @@ wait4msg(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return( rc );
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user