summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2003-03-12 10:56:55 +0000
committerAndrew Bartlett <abartlet@samba.org>2003-03-12 10:56:55 +0000
commit02abe94f81136f85dc72b7015213871831ce2e1a (patch)
tree3ea90c8d4709dbf3a225e3e55237d2f37d92323f /source3
parenta6c6800746a77fd041151b42c4aad9d170efb931 (diff)
downloadsamba-02abe94f81136f85dc72b7015213871831ce2e1a.tar.gz
samba-02abe94f81136f85dc72b7015213871831ce2e1a.tar.bz2
samba-02abe94f81136f85dc72b7015213871831ce2e1a.zip
- Fix a double-free (I can't say I understand the code, but it matches the other
cases and keeps valgrind quiet). - Add static Andrew Bartlett (This used to be commit e9da9c500b96a828d744e7a1c64427fc01153310)
Diffstat (limited to 'source3')
-rw-r--r--source3/libads/krb5_setpw.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/source3/libads/krb5_setpw.c b/source3/libads/krb5_setpw.c
index ac7377cd2f..29bf1a427c 100644
--- a/source3/libads/krb5_setpw.c
+++ b/source3/libads/krb5_setpw.c
@@ -546,7 +546,6 @@ ADS_STATUS krb5_set_password(const char *kdc_host, const char *princ, const char
krb5_free_creds(context, credsp);
krb5_free_principal(context, creds.client);
- krb5_free_principal(context, creds.server);
krb5_free_principal(context, principal);
krb5_free_context(context);
@@ -579,11 +578,11 @@ kerb_prompter(krb5_context ctx, void *data,
return 0;
}
-ADS_STATUS krb5_chg_password(const char *kdc_host,
- const char *principal,
- const char *oldpw,
- const char *newpw,
- int time_offset)
+static ADS_STATUS krb5_chg_password(const char *kdc_host,
+ const char *principal,
+ const char *oldpw,
+ const char *newpw,
+ int time_offset)
{
ADS_STATUS aret;
krb5_error_code ret;