tldap: Avoid a "ret == false"
authorVolker Lendecke <vl@samba.org>
Sun, 31 Jan 2016 11:25:32 +0000 (12:25 +0100)
committerGü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

index 8142f22de397ec9a48e8b860f26ffdff19917365..0148d30eca3e2269bd31e1fbfff4458dc61e52e0 100644 (file)
@@ -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;
 }