diff options
Diffstat (limited to 'source3/librpc/crypto/cli_spnego.c')
-rw-r--r-- | source3/librpc/crypto/cli_spnego.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source3/librpc/crypto/cli_spnego.c b/source3/librpc/crypto/cli_spnego.c index e4fdf315aa..f245484653 100644 --- a/source3/librpc/crypto/cli_spnego.c +++ b/source3/librpc/crypto/cli_spnego.c @@ -340,9 +340,8 @@ DATA_BLOB spnego_get_session_key(TALLOC_CTX *mem_ctx, return gse_get_session_key(mem_ctx, sp_ctx->mech_ctx.gssapi_state); case SPNEGO_NTLMSSP: - sk = auth_ntlmssp_get_session_key( - sp_ctx->mech_ctx.ntlmssp_state); - return data_blob_dup_talloc(mem_ctx, &sk); + return auth_ntlmssp_get_session_key( + sp_ctx->mech_ctx.ntlmssp_state, mem_ctx); default: DEBUG(0, ("Unsupported type in request!\n")); return data_blob_null; |