INN commit: trunk/lib (confparse.c)

INN Commit rra at isc.org
Sun Apr 3 13:19:48 UTC 2016


    Date: Sunday, April 3, 2016 @ 06:19:48
  Author: iulius
Revision: 9991

confparse.c:  fix the message error when opening braces are missing

tag was always NULL in the condition.

Modified:
  trunk/lib/confparse.c

-------------+
 confparse.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: confparse.c
===================================================================
--- confparse.c	2016-04-03 13:18:26 UTC (rev 9990)
+++ confparse.c	2016-04-03 13:19:48 UTC (rev 9991)
@@ -1125,9 +1125,9 @@
     }
     if (token != TOKEN_LBRACE && token != TOKEN_LANGLE) {
         free(type);
+        expected = tag != NULL ? "'{' or '<'" : "group tag, '{', or '<'";
         if (tag != NULL)
             free(tag);
-        expected = tag != NULL ? "'{' or '<'" : "group tag, '{', or '<'";
         error_unexpected_token(file, expected);
         return false;
     }



More information about the inn-committers mailing list