[PC-BSD Commits] r18005 - pcbsd/current/src-sh/pc-adctl/krb

svn at pcbsd.org svn at pcbsd.org
Mon Jul 30 15:24:31 PDT 2012


Author: johnh
Date: 2012-07-30 22:24:31 +0000 (Mon, 30 Jul 2012)
New Revision: 18005

Modified:
   pcbsd/current/src-sh/pc-adctl/krb/krbconf.c
Log:
Only create a new entry if create is set to 1.



Modified: pcbsd/current/src-sh/pc-adctl/krb/krbconf.c
===================================================================
--- pcbsd/current/src-sh/pc-adctl/krb/krbconf.c	2012-07-30 22:20:35 UTC (rev 18004)
+++ pcbsd/current/src-sh/pc-adctl/krb/krbconf.c	2012-07-30 22:24:31 UTC (rev 18005)
@@ -663,7 +663,7 @@
 			ke = create_bindings(ke, nbindings, bindings, bmax,
 				value == NULL ? NULL : *value);
 
-		} else {
+		} else if (create == 1) {
 			struct krb_entry *ns = xalloc(sizeof(*ns));
 
 			ns->type = KRB_ENTRY_SECTION;



More information about the Commits mailing list