diff options
author | Andrew Bartlett <abartlet@samba.org> | 2005-11-01 13:29:22 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:45:37 -0500 |
commit | 15c1df2e8a71b0e61b6db116c99ed40b1180567d (patch) | |
tree | deaa8118c5ed597de9e20e43af2fbe189ca2ce88 /source4/kdc/kpasswdd.c | |
parent | 4298fab790cd8f8f4f6d5c0226934847d67a2c08 (diff) | |
download | samba-15c1df2e8a71b0e61b6db116c99ed40b1180567d.tar.gz samba-15c1df2e8a71b0e61b6db116c99ed40b1180567d.tar.xz samba-15c1df2e8a71b0e61b6db116c99ed40b1180567d.zip |
r11437: Fix (valid!) use of uninitialised value warnings.
Andrew Bartlett
(This used to be commit 64b9ea642bb7443f804e71bb2a6ccad94522d057)
Diffstat (limited to 'source4/kdc/kpasswdd.c')
-rw-r--r-- | source4/kdc/kpasswdd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/kdc/kpasswdd.c b/source4/kdc/kpasswdd.c index 73584b7554b..4dd0eda4442 100644 --- a/source4/kdc/kpasswdd.c +++ b/source4/kdc/kpasswdd.c @@ -130,6 +130,7 @@ static BOOL kpasswd_make_pwchange_reply(struct kdc_server *kdc, reject_string = "Password does not meet complexity requirements"; break; case SAMR_REJECT_OTHER: + default: reject_string = talloc_asprintf(mem_ctx, "Password must be at least %d characters long, and cannot match any of your %d previous passwords", dominfo->min_password_length, dominfo->password_history_length); break; @@ -209,7 +210,7 @@ static BOOL kpasswd_process_request(struct kdc_server *kdc, struct ldb_message *msg = ldb_msg_new(gensec_security); krb5_context context = kdc->smb_krb5_context->krb5_context; int ret; - if (!samdb || !msg) { + if (!msg) { return False; } |