s4-rpc: don't use s->credentials after it is freed
authorAndrew Tridgell <tridge@samba.org>
Fri, 5 Mar 2010 02:49:49 +0000 (13:49 +1100)
committerAndrew Tridgell <tridge@samba.org>
Fri, 5 Mar 2010 02:50:18 +0000 (13:50 +1100)
source4/librpc/rpc/dcerpc_schannel.c

index 0870c89714d411287a6acfaa4f360988a514fadf..4927e203cdd7b644c81da49b4c1032fd0420e31e 100644 (file)
@@ -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;
        }