From 52445e1583580e135da9e85c93608d0909dea8a7 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 13 Sep 2010 07:44:06 +1000 Subject: s4-schannel: fixed reference to context after free Pair-Programmed-With: Andrew Bartlett --- source4/librpc/rpc/dcerpc_schannel.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'source4') diff --git a/source4/librpc/rpc/dcerpc_schannel.c b/source4/librpc/rpc/dcerpc_schannel.c index b8839f9c77..ff511a2c67 100644 --- a/source4/librpc/rpc/dcerpc_schannel.c +++ b/source4/librpc/rpc/dcerpc_schannel.c @@ -317,11 +317,12 @@ static void continue_schannel_key(struct composite_context *ctx) struct composite_context); struct auth_schannel_state *s = talloc_get_type(c->private_data, struct auth_schannel_state); + NTSTATUS status; /* receive schannel key */ - c->status = dcerpc_schannel_key_recv(ctx); + status = c->status = dcerpc_schannel_key_recv(ctx); if (!composite_is_ok(c)) { - DEBUG(1, ("Failed to setup credentials: %s\n", nt_errstr(c->status))); + DEBUG(1, ("Failed to setup credentials: %s\n", nt_errstr(status))); return; } -- cgit