Blame SOURCES/libreswan-3.25-1625303-recursive-incl.patch

221bf6
commit b257545675ae4564d866758eb3ef4230d7c1ede2
221bf6
Author: D. Hugh Redelmeier <hugh@mimosa.com>
221bf6
Date:   Tue Sep 25 17:14:36 2018 -0400
221bf6
221bf6
    libipsecconf: fix off-by-one in config file "include" handling
221bf6
221bf6
diff --git a/lib/libipsecconf/parser.l b/lib/libipsecconf/parser.l
221bf6
index cc2faf5c9..aad2fc9b2 100644
221bf6
--- a/lib/libipsecconf/parser.l
221bf6
+++ b/lib/libipsecconf/parser.l
221bf6
@@ -260,7 +260,7 @@ int parser_y_include (const char *filename)
221bf6
 	case 0:
221bf6
 		/* success */
221bf6
 
221bf6
-		if (ic_private.stack_ptr >= MAX_INCLUDE_DEPTH) {
221bf6
+		if (ic_private.stack_ptr >= MAX_INCLUDE_DEPTH - 1) {
221bf6
 			yyerror("max inclusion depth reached");
221bf6
 			return 1;
221bf6
 		}