[PATCH 5/5] make-secnet-sites: If definition found in wrong place, bomb out
Ian Jackson
ijackson at chiark.greenend.org.uk
Sat Dec 17 22:03:17 GMT 2011
If it doesn't exit here, make-secnet-sites might subsequently crash
with Python stack backtrace.
Signed-off-by: Ian Jackson <ijackson at chiark.greenend.org.uk>
---
make-secnet-sites | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/make-secnet-sites b/make-secnet-sites
index c49467a..9e00720 100755
--- a/make-secnet-sites
+++ b/make-secnet-sites
@@ -376,6 +376,8 @@ def pline(i,allow_include=False):
if nl.depth<allow_defs:
complain("New definitions not allowed at "
"level %d"%nl.depth)
+ # we risk crashing if we continue
+ sys.exit(1)
current.children[w[1]]=nl
current=nl
obstack.append(current)
--
1.5.6.5
More information about the sgo-software-discuss
mailing list