1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

tldap: tevent_req_create NULLs out "state"

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
Volker Lendecke 2015-12-22 13:44:02 +01:00 committed by Ralph Boehme
parent e48184935e
commit 3df9e9c7ae

View 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;