Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 8 Jul 2013 01:29:09 +0000 (UTC)
From:      Rick Macklem <rmacklem@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r253018 - head/usr.sbin/gssd
Message-ID:  <201307080129.r681T9nE014755@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: rmacklem
Date: Mon Jul  8 01:29:09 2013
New Revision: 253018
URL: http://svnweb.freebsd.org/changeset/base/253018

Log:
  Oops, initialize the krb5 ret values correctly (to anything non-zero).

Modified:
  head/usr.sbin/gssd/gssd.c

Modified: head/usr.sbin/gssd/gssd.c
==============================================================================
--- head/usr.sbin/gssd/gssd.c	Mon Jul  8 01:08:57 2013	(r253017)
+++ head/usr.sbin/gssd/gssd.c	Mon Jul  8 01:29:09 2013	(r253018)
@@ -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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201307080129.r681T9nE014755>