]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#9145 Do not add controls to cancel/abandon
authorOndřej Kuzník <ondra@mistotebe.net>
Fri, 3 Jan 2020 10:51:28 +0000 (10:51 +0000)
committerOndřej Kuzník <ondra@mistotebe.net>
Fri, 3 Jan 2020 10:51:28 +0000 (10:51 +0000)
clients/tools/common.c

index 672bd07bb0586c9787f4b601aaad140610093ef2..880266a4d3704c121c1f4ae06b323f5dab9e892c 100644 (file)
@@ -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;