Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Joe Martin
OpenLDAP
Commits
fd4c24d7
Commit
fd4c24d7
authored
Jan 03, 2020
by
Ondřej Kuzník
Committed by
Quanah Gibson-Mount
Jan 09, 2020
Browse files
ITS#9145 Do not add controls to cancel/abandon
parent
fa08f656
Changes
1
Hide whitespace changes
Inline
Side-by-side
clients/tools/common.c
View file @
fd4c24d7
...
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment