summaryrefslogtreecommitdiff
path: root/source4/auth/kerberos/kerberos_verify.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2005-06-04 01:17:54 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:17:32 -0500
commit7ea6543ce5596d5bff720a6d348ab4ebc3ac0566 (patch)
tree847cfdcc67f27656b8989b2001e27468b718e2a6 /source4/auth/kerberos/kerberos_verify.c
parent28732d92082c88e91702e0cd585e0c1c73138dde (diff)
downloadsamba-7ea6543ce5596d5bff720a6d348ab4ebc3ac0566.tar.gz
samba-7ea6543ce5596d5bff720a6d348ab4ebc3ac0566.tar.bz2
samba-7ea6543ce5596d5bff720a6d348ab4ebc3ac0566.zip
r7257: Ensure the error message can never be uninitialised.
Andrew Bartlett (This used to be commit fdd964582a4b102978fbc29dbf71de52bd30a155)
Diffstat (limited to 'source4/auth/kerberos/kerberos_verify.c')
-rw-r--r--source4/auth/kerberos/kerberos_verify.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source4/auth/kerberos/kerberos_verify.c b/source4/auth/kerberos/kerberos_verify.c
index 2e6e8870de..f85819aa36 100644
--- a/source4/auth/kerberos/kerberos_verify.c
+++ b/source4/auth/kerberos/kerberos_verify.c
@@ -132,6 +132,7 @@ static krb5_error_code ads_keytab_verify_ticket(TALLOC_CTX *mem_ctx, krb5_contex
last_error_message));
} else {
ret = KRB5KDC_ERR_S_PRINCIPAL_UNKNOWN; /* Pick an error... */
+ last_error_message = "No principals in Keytab";
while (ret && (krb5_kt_next_entry(context, keytab, &kt_entry, &kt_cursor) == 0)) {
krb5_error_code upn_ret;
upn_ret = krb5_unparse_name(context, kt_entry.principal, &entry_princ_s);