]> 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)
committerQuanah Gibson-Mount <quanah@openldap.org>
Thu, 9 Jan 2020 17:09:48 +0000 (17:09 +0000)
clients/tools/common.c

index 0d9d7a6ac7c9d06393501480d74d9907e96a25d4..6361ebdb23b55dde5fea449c5cf1ecff955ee751 100644 (file)
@@ -1877,16 +1877,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;