mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-22 07:39:35 -05:00
check for timeout allowed by options (ITS#6282)
This commit is contained in:
parent
07b7491249
commit
08b43a89f6
1 changed files with 7 additions and 1 deletions
|
|
@ -1438,11 +1438,17 @@ tool_bind( LDAP *ld )
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( ldap_result( ld, msgid, LDAP_MSG_ALL, NULL, &result ) == -1 ) {
|
rc = ldap_result( ld, msgid, LDAP_MSG_ALL, NULL, &result );
|
||||||
|
if ( rc == -1 ) {
|
||||||
tool_perror( "ldap_result", -1, NULL, NULL, NULL, NULL );
|
tool_perror( "ldap_result", -1, NULL, NULL, NULL, NULL );
|
||||||
exit( LDAP_LOCAL_ERROR );
|
exit( LDAP_LOCAL_ERROR );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ( rc == 0 ) {
|
||||||
|
tool_perror( "ldap_result", LDAP_TIMEOUT, NULL, NULL, NULL, NULL );
|
||||||
|
exit( LDAP_LOCAL_ERROR );
|
||||||
|
}
|
||||||
|
|
||||||
rc = ldap_parse_result( ld, result, &err, &matched, &info, &refs,
|
rc = ldap_parse_result( ld, result, &err, &matched, &info, &refs,
|
||||||
&ctrls, 1 );
|
&ctrls, 1 );
|
||||||
if ( rc != LDAP_SUCCESS ) {
|
if ( rc != LDAP_SUCCESS ) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue