aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorCy Schubert <cy@FreeBSD.org>2023-07-08 03:09:18 +0000
committerMark Johnston <markj@FreeBSD.org>2023-08-01 19:46:53 +0000
commitabe05d13d575f0299653067614169460d33aab13 (patch)
tree2ba6276476f908b92bed88c98fd8dfffef797857 /lib
parent27340c75ee9ff81f12559cffc368a63a056098f4 (diff)
Diffstat (limited to 'lib')
-rw-r--r--lib/libpam/modules/pam_krb5/pam_krb5.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/lib/libpam/modules/pam_krb5/pam_krb5.c b/lib/libpam/modules/pam_krb5/pam_krb5.c
index 3972479a581f..3c7976297ed2 100644
--- a/lib/libpam/modules/pam_krb5/pam_krb5.c
+++ b/lib/libpam/modules/pam_krb5/pam_krb5.c
@@ -938,18 +938,6 @@ verify_krb_v5_tgt_begin(krb5_context context, char *pam_service, int debug,
continue;
break;
}
- if (retval != 0) { /* failed to find key */
- /* Keytab or service key does not exist */
- if (debug) {
- const char *msg = krb5_get_error_message(context,
- retval);
- syslog(LOG_DEBUG,
- "pam_krb5: verify_krb_v5_tgt(): %s: %s",
- "krb5_kt_read_service_key()", msg);
- krb5_free_error_message(context, msg);
- }
- retval = 0;
- }
if (keyblock)
krb5_free_keyblock(context, keyblock);