From: Igor Maravic <[email protected]>

Memory was exhausted because right recursion was used instead of left recursion!
Fixed that.

Reported-by: Leonid Shigris <[email protected]>
Signed-off-by: Igor Maravic <[email protected]>
---
 xorp/rtrmgr/boot.yy |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/xorp/rtrmgr/boot.yy b/xorp/rtrmgr/boot.yy
index 8f47eff..dffb438 100644
--- a/xorp/rtrmgr/boot.yy
+++ b/xorp/rtrmgr/boot.yy
@@ -141,7 +141,7 @@ long_nodegroup:     UPLEVEL statements DOWNLEVEL { 
pop_path(); }
                ;
 
 statements:    /* empty string */
-               | statement statements
+               | statements statement
                ;
 
 statement:     terminal
-- 
1.7.9.5

_______________________________________________
Xorp-hackers mailing list
[email protected]
http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-hackers

Reply via email to