git.samba.org
/
bbaumbach
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
372bf52
)
tldap: Avoid a "ret == false"
author
Volker Lendecke
<vl@samba.org>
Sun, 31 Jan 2016 11:25:32 +0000
(12:25 +0100)
committer
Günther Deschner
<gd@samba.org>
Wed, 3 Feb 2016 14:04:11 +0000
(15:04 +0100)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
source3/lib/tldap.c
patch
|
blob
|
history
diff --git
a/source3/lib/tldap.c
b/source3/lib/tldap.c
index 8142f22de397ec9a48e8b860f26ffdff19917365..0148d30eca3e2269bd31e1fbfff4458dc61e52e0 100644
(file)
--- a/
source3/lib/tldap.c
+++ b/
source3/lib/tldap.c
@@
-2116,10
+2116,10
@@
static bool tldap_decode_controls(struct tldap_req_state *state)
out:
- if (ret == false) {
- TALLOC_FREE(sctrls);
- } else {
+ if (ret) {
msg->res_sctrls = sctrls;
+ } else {
+ TALLOC_FREE(sctrls);
}
return ret;
}