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

svn at pcbsd.org svn at pcbsd.org
Mon Jul 30 20:49:38 PDT 2012


Author: johnh
Date: 2012-07-31 03:49:38 +0000 (Tue, 31 Jul 2012)
New Revision: 18009

Modified:
   pcbsd/current/src-sh/pc-adctl/krb/krbconf.c
Log:
Another bug fix, only count braces once a binding has been found.



Modified: pcbsd/current/src-sh/pc-adctl/krb/krbconf.c
===================================================================
--- pcbsd/current/src-sh/pc-adctl/krb/krbconf.c	2012-07-30 23:10:49 UTC (rev 18008)
+++ pcbsd/current/src-sh/pc-adctl/krb/krbconf.c	2012-07-31 03:49:38 UTC (rev 18009)
@@ -502,9 +502,9 @@
 					TAILQ_FOREACH_SAFE(fe, &fentries, fentries, fetmp) {
 						if (fe == node)
 							found = 1;
-						if (fe->type == KRB_ENTRY_BINDING_START)
+						if (fe->type == KRB_ENTRY_BINDING_START && found == 1)
 							bs++;
-						if (fe->type == KRB_ENTRY_BINDING_END)
+						if (fe->type == KRB_ENTRY_BINDING_END && found == 1)
 							bs--;
 
 						last = fe;
@@ -568,9 +568,9 @@
 					TAILQ_FOREACH_SAFE(fe, &fentries, fentries, fetmp) {
 						if (fe == node)
 							found = 1;
-						if (fe->type == KRB_ENTRY_BINDING_START)
+						if (fe->type == KRB_ENTRY_BINDING_START && found == 1)
 							bs++;
-						if (fe->type == KRB_ENTRY_BINDING_END)
+						if (fe->type == KRB_ENTRY_BINDING_END && found == 1)
 							bs--;
 
 						last = fe;



More information about the Commits mailing list