krb5 commit: Fix check for KDB: prefix in kinit
Greg Hudson
ghudson at MIT.EDU
Fri May 10 12:32:44 EDT 2013
https://github.com/krb5/krb5/commit/962e70a085314b44246263f5d8c9dc670a39eccb
commit 962e70a085314b44246263f5d8c9dc670a39eccb
Author: Richard Basch <basch at alum.mit.edu>
Date: Fri May 10 12:24:21 2013 -0400
Fix check for KDB: prefix in kinit
The string "KDB:" has four characters, not three; check for all four
of them.
[ghudson at mit.edu: commit message]
ticket: 7636
src/clients/kinit/kinit.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/clients/kinit/kinit.c b/src/clients/kinit/kinit.c
index 71a2fec..5ceede8 100644
--- a/src/clients/kinit/kinit.c
+++ b/src/clients/kinit/kinit.c
@@ -719,7 +719,7 @@ k5_kinit(opts, k5)
if ((opts->action == INIT_KT) && opts->keytab_name)
{
#ifndef _WIN32
- if (strncmp(opts->keytab_name, "KDB:", 3) == 0) {
+ if (strncmp(opts->keytab_name, "KDB:", 4) == 0) {
code = kinit_kdb_init(&k5->ctx,
krb5_princ_realm(k5->ctx, k5->me)->data);
if (code != 0) {
More information about the cvs-krb5
mailing list