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

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