s4-rpc: don't use s->credentials after it is freed
[ira/wip.git] / 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;
        }