[PATCH 5/9] make-secnet-sites: If definition found in wrong place, bomb out
Ian Jackson
ijackson at chiark.greenend.org.uk
Wed Jul 11 01:10:02 BST 2012
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.7.2.5
More information about the sgo-software-discuss
mailing list