1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00

r11082: Fix a segfault

(This used to be commit 576a724bf1)
This commit is contained in:
Volker Lendecke 2005-10-15 08:17:22 +00:00 committed by Gerald (Jerry) Carter
parent 1bdd3a466d
commit d102d5ab57

View File

@ -139,6 +139,7 @@ static void finddcs_getdc(struct irpc_request *ireq)
talloc_get_type(ireq->async.private, struct finddcs_state);
state->ctx->status = irpc_call_recv(ireq);
talloc_free(ireq);
if (!composite_is_ok(state->ctx)) return;
state->dcs[0].name = talloc_steal(state->dcs, state->r.out.dcname);