tldap: tevent_req_create NULLs out "state"
authorVolker Lendecke <vl@samba.org>
Tue, 22 Dec 2015 12:44:02 +0000 (13:44 +0100)
committerRalph Boehme <slow@samba.org>
Sun, 10 Jan 2016 21:24:17 +0000 (22:24 +0100)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/lib/tldap.c

index 85d3d478e817ddb2eb750438f685ceaa8764f9ec..9a418dddac82169752e12cdbbe4b7bc07044e4e2 100644 (file)
@@ -719,12 +719,10 @@ static struct tevent_req *tldap_req_create(TALLOC_CTX *mem_ctx,
        if (req == NULL) {
                return NULL;
        }
-       ZERO_STRUCTP(state);
        state->out = asn1_init(state);
        if (state->out == NULL) {
                goto err;
        }
-       state->result = NULL;
        state->id = tldap_next_msgid(ld);
 
        if (!asn1_push_tag(state->out, ASN1_SEQUENCE(0))) goto err;