From: Andrew Tridgell Date: Fri, 5 Mar 2010 02:49:49 +0000 (+1100) Subject: s4-rpc: don't use s->credentials after it is freed X-Git-Tag: samba-3.6.0pre1~4778 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f01f124969b3e75accfc82fb85487fdab2046e82;p=thirdparty%2Fsamba.git s4-rpc: don't use s->credentials after it is freed --- diff --git a/source4/librpc/rpc/dcerpc_schannel.c b/source4/librpc/rpc/dcerpc_schannel.c index 0870c89714d..4927e203cdd 100644 --- a/source4/librpc/rpc/dcerpc_schannel.c +++ b/source4/librpc/rpc/dcerpc_schannel.c @@ -315,8 +315,7 @@ static void continue_schannel_key(struct composite_context *ctx) /* receive schannel key */ c->status = dcerpc_schannel_key_recv(ctx); if (!composite_is_ok(c)) { - DEBUG(1, ("Failed to setup credentials for account %s: %s\n", - cli_credentials_get_username(s->credentials), nt_errstr(c->status))); + DEBUG(1, ("Failed to setup credentials: %s\n", nt_errstr(c->status))); return; }