diff options
author | Andrew Bartlett <abartlet@samba.org> | 2005-10-12 22:24:43 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2005-10-12 22:24:43 +0000 |
commit | 3e2ca2eb1dbd84e1aee202429137853f7fffbba6 (patch) | |
tree | aa811ca3ab9122e0d94edafb0271178aef08c1d6 | |
parent | 7b41bd09cfa019e706b10b30cab291985230cbdf (diff) | |
download | samba-3e2ca2eb1dbd84e1aee202429137853f7fffbba6.tar.gz samba-3e2ca2eb1dbd84e1aee202429137853f7fffbba6.tar.xz samba-3e2ca2eb1dbd84e1aee202429137853f7fffbba6.zip |
r10945: Free the salt after we are done with it. May need a merge to similar
code in Samba3.
Andrew Bartlett
-rw-r--r-- | source/auth/kerberos/clikrb5.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/auth/kerberos/clikrb5.c b/source/auth/kerberos/clikrb5.c index 85d60a1244b..eff558a37b9 100644 --- a/source/auth/kerberos/clikrb5.c +++ b/source/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 |