summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-09-13 07:44:06 +1000
committerAndrew Tridgell <tridge@samba.org>2010-09-15 15:39:34 +1000
commit52445e1583580e135da9e85c93608d0909dea8a7 (patch)
tree528eafca186746d530f8ab8aca7a2a45d5f4e417 /source4
parent5b02cf1eb0b2e524cb58ec6ed6e766c252b06af9 (diff)
downloadsamba-52445e1583580e135da9e85c93608d0909dea8a7.tar.gz
samba-52445e1583580e135da9e85c93608d0909dea8a7.tar.bz2
samba-52445e1583580e135da9e85c93608d0909dea8a7.zip
s4-schannel: fixed reference to context after free
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4')
-rw-r--r--source4/librpc/rpc/dcerpc_schannel.c5
1 files changed, 3 insertions, 2 deletions
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;
}