Commit fd4c24d7 authored by Ondřej Kuzník's avatar Ondřej Kuzník Committed by Quanah Gibson-Mount
Browse files

ITS#9145 Do not add controls to cancel/abandon

parent fa08f656
...@@ -1877,16 +1877,17 @@ int ...@@ -1877,16 +1877,17 @@ int
tool_check_abandon( LDAP *ld, int msgid ) tool_check_abandon( LDAP *ld, int msgid )
{ {
int rc; int rc;
LDAPControl sctrls[1] = { NULL };
switch ( gotintr ) { switch ( gotintr ) {
case Intr_Cancel: 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", fprintf( stderr, "got interrupt, cancel got %d: %s\n",
rc, ldap_err2string( rc ) ); rc, ldap_err2string( rc ) );
return -1; return -1;
case Intr_Abandon: 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", fprintf( stderr, "got interrupt, abandon got %d: %s\n",
rc, ldap_err2string( rc ) ); rc, ldap_err2string( rc ) );
return -1; return -1;
......
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