mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-02-03 20:40:05 -05:00
ITS#9145 Do not add controls to cancel/abandon
This commit is contained in:
parent
14d4215bc1
commit
eaabe336f3
1 changed files with 3 additions and 2 deletions
|
|
@ -2005,16 +2005,17 @@ int
|
|||
tool_check_abandon( LDAP *ld, int msgid )
|
||||
{
|
||||
int rc;
|
||||
LDAPControl sctrls[1] = { NULL };
|
||||
|
||||
switch ( gotintr ) {
|
||||
case Intr_Cancel:
|
||||
rc = ldap_cancel_s( ld, msgid, NULL, NULL );
|
||||
rc = ldap_cancel_s( ld, msgid, sctrls, NULL );
|
||||
fprintf( stderr, "got interrupt, cancel got %d: %s\n",
|
||||
rc, ldap_err2string( rc ) );
|
||||
return -1;
|
||||
|
||||
case Intr_Abandon:
|
||||
rc = ldap_abandon_ext( ld, msgid, NULL, NULL );
|
||||
rc = ldap_abandon_ext( ld, msgid, sctrls, NULL );
|
||||
fprintf( stderr, "got interrupt, abandon got %d: %s\n",
|
||||
rc, ldap_err2string( rc ) );
|
||||
return -1;
|
||||
|
|
|
|||
Loading…
Reference in a new issue