diff options
author | rmacklem <rmacklem@FreeBSD.org> | 2013-07-08 01:29:09 +0000 |
---|---|---|
committer | rmacklem <rmacklem@FreeBSD.org> | 2013-07-08 01:29:09 +0000 |
commit | e26f9c4bf137300dc329c793a1e717cf27e69e78 (patch) | |
tree | a2828ed5e0e96d3674badbe7126817d89a5a426c | |
parent | 8c5a2c55f29ab5c936ab8493be1bb4f1f58290c2 (diff) | |
download | FreeBSD-src-e26f9c4bf137300dc329c793a1e717cf27e69e78.zip FreeBSD-src-e26f9c4bf137300dc329c793a1e717cf27e69e78.tar.gz |
Oops, initialize the krb5 ret values correctly (to anything non-zero).
-rw-r--r-- | usr.sbin/gssd/gssd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/gssd/gssd.c b/usr.sbin/gssd/gssd.c index 8cd9f8e..9548b8c 100644 --- a/usr.sbin/gssd/gssd.c +++ b/usr.sbin/gssd/gssd.c @@ -1196,7 +1196,7 @@ gssd_get_cc_from_keytab(const char *name) ret = krb5_init_context(&context); if (ret != 0) return (ret); - opt_ret = cc_ret = kt_ret = cred_ret = 0; + opt_ret = cc_ret = kt_ret = cred_ret = 1; /* anything non-zero */ princ_ret = ret = krb5_parse_name(context, name, &principal); if (ret == 0) opt_ret = ret = krb5_get_init_creds_opt_alloc(context, &opt); |