summaryrefslogtreecommitdiff
path: root/source4/auth/kerberos
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2005-10-12 22:24:43 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:39:44 -0500
commitb4a1e760c9b8c8ff05e36fd93ef16d9ee5889073 (patch)
tree023205a4ebec7215e87524c422213091198181f1 /source4/auth/kerberos
parent0a8291404912ba1873b8158e5aec9ba2541f37f7 (diff)
downloadsamba-b4a1e760c9b8c8ff05e36fd93ef16d9ee5889073.tar.gz
samba-b4a1e760c9b8c8ff05e36fd93ef16d9ee5889073.tar.bz2
samba-b4a1e760c9b8c8ff05e36fd93ef16d9ee5889073.zip
r10945: Free the salt after we are done with it. May need a merge to similar
code in Samba3. Andrew Bartlett (This used to be commit 36e302bac87d0a07c86cc4c841d376c778630dab)
Diffstat (limited to 'source4/auth/kerberos')
-rw-r--r--source4/auth/kerberos/clikrb5.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source4/auth/kerberos/clikrb5.c b/source4/auth/kerberos/clikrb5.c
index 85d60a1244..eff558a37b 100644
--- a/source4/auth/kerberos/clikrb5.c
+++ b/source4/auth/kerberos/clikrb5.c
@@ -111,8 +111,10 @@
DEBUG(1,("krb5_get_pw_salt failed (%s)\n", error_message(ret)));
return ret;
}
- return krb5_string_to_key_salt(context, enctype, password->data,
- salt, key);
+ ret = krb5_string_to_key_salt(context, enctype, password->data,
+ salt, key);
+ krb5_free_salt(context, salt);
+ return ret;
}
#else
#error UNKNOWN_CREATE_KEY_FUNCTIONS