diff options
author | Andrew Bartlett <abartlet@samba.org> | 2009-03-18 16:23:27 +1100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2009-04-07 13:25:36 +0200 |
commit | 574a6a8c350a4bab3f42f3f9cfb382db721d69b5 (patch) | |
tree | e86d24ac19e673a7d8b53dbd529d3f9e2a75a28a /source3/utils/ntlm_auth.c | |
parent | fca02c9154796624958a877d2c92cabd65e9d0e4 (diff) | |
download | samba-574a6a8c350a4bab3f42f3f9cfb382db721d69b5.tar.gz samba-574a6a8c350a4bab3f42f3f9cfb382db721d69b5.tar.xz samba-574a6a8c350a4bab3f42f3f9cfb382db721d69b5.zip |
s3:kerberos Rework smb_krb5_unparse_name() to take a talloc context
Signed-off-by: Günther Deschner <gd@samba.org>
Diffstat (limited to 'source3/utils/ntlm_auth.c')
-rw-r--r-- | source3/utils/ntlm_auth.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/source3/utils/ntlm_auth.c b/source3/utils/ntlm_auth.c index 9bc0c60b7bb..7899bd0d076 100644 --- a/source3/utils/ntlm_auth.c +++ b/source3/utils/ntlm_auth.c @@ -1251,8 +1251,6 @@ static void manage_gss_spnego_request(struct ntlm_auth_state *state, &principal, &pac_data, &ap_rep, &session_key, True); - talloc_destroy(mem_ctx); - /* Now in "principal" we have the name we are authenticated as. */ @@ -1274,9 +1272,9 @@ static void manage_gss_spnego_request(struct ntlm_auth_state *state, user = SMB_STRDUP(principal); data_blob_free(&ap_rep); - - SAFE_FREE(principal); } + + TALLOC_FREE(mem_ctx); } #endif |