From fab9aff6a20b7dcb5a570fd2a103b5e5da6fea93 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 23 Oct 2009 17:25:19 +0200 Subject: s4:gensec/schannel: remove unused talloc_reference() in schannel_update() We never expose creds to the caller in schannel_update(). metze --- source4/auth/gensec/schannel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4/auth/gensec') diff --git a/source4/auth/gensec/schannel.c b/source4/auth/gensec/schannel.c index 58cbb6a593..7b8bdec27a 100644 --- a/source4/auth/gensec/schannel.c +++ b/source4/auth/gensec/schannel.c @@ -156,7 +156,7 @@ static NTSTATUS schannel_update(struct gensec_security *gensec_security, TALLOC_ return status; } - state->creds = talloc_reference(state, creds); + state->creds = talloc_steal(state, creds); bind_schannel_ack.MessageType = NL_NEGOTIATE_RESPONSE; bind_schannel_ack.Flags = 0; -- cgit