diff options
author | rmacklem <rmacklem@FreeBSD.org> | 2013-07-08 01:08:57 +0000 |
---|---|---|
committer | rmacklem <rmacklem@FreeBSD.org> | 2013-07-08 01:08:57 +0000 |
commit | 8c5a2c55f29ab5c936ab8493be1bb4f1f58290c2 (patch) | |
tree | 36728114c4eabe877ea4f76f2f46ce47a1d99e17 | |
parent | 7efd59dbbfa8cda3598f443213a0843fb8359c3e (diff) | |
download | FreeBSD-src-8c5a2c55f29ab5c936ab8493be1bb4f1f58290c2.zip FreeBSD-src-8c5a2c55f29ab5c936ab8493be1bb4f1f58290c2.tar.gz |
Make sure the krb5 status variables are correctly initialized.
-rw-r--r-- | usr.sbin/gssd/gssd.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.sbin/gssd/gssd.c b/usr.sbin/gssd/gssd.c index 276735c..8cd9f8e 100644 --- a/usr.sbin/gssd/gssd.c +++ b/usr.sbin/gssd/gssd.c @@ -1196,6 +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; princ_ret = ret = krb5_parse_name(context, name, &principal); if (ret == 0) opt_ret = ret = krb5_get_init_creds_opt_alloc(context, &opt); |