aboutsummaryrefslogtreecommitdiff
path: root/scripts/rpkid.py
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2007-10-03 16:40:28 +0000
committerRob Austein <sra@hactrn.net>2007-10-03 16:40:28 +0000
commitdb39f6bfa8b561e768512b748927285ec226cb3f (patch)
tree5b95648430e44fc72202f0c27a7a3ebf98a1bc1b /scripts/rpkid.py
parentf8655e3a98cb56f8e1f1f9b5acde016efe621c83 (diff)
Paranoia
svn path=/scripts/rpki/up_down.py; revision=1085
Diffstat (limited to 'scripts/rpkid.py')
-rwxr-xr-xscripts/rpkid.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/rpkid.py b/scripts/rpkid.py
index b1f88fd5..a23c8a70 100755
--- a/scripts/rpkid.py
+++ b/scripts/rpkid.py
@@ -33,6 +33,8 @@ def up_down_handler(query, path):
q_elt = rpki.cms.xml_decode(query, child.peer_ta)
rpki.relaxng.up_down.assertValid(q_elt)
q_msg = rpki.up_down.sax_handler.saxify(q_elt)
+ if q_msg.sender != child_id:
+ raise rpki.exceptions.NotFound, "Unexpected XML sender %s" % q_msg.sender
r_msg = q_msg.serve_top_level(gctx)
r_elt = r_msg.toXML()
rpki.relaxng.up_down.assertValid(r_elt)