From 1fda0502ab28733f1aa0fd1dc1ceabe4dbb8d221 Mon Sep 17 00:00:00 2001 From: Marek Marczykowski Date: Fri, 10 May 2013 05:22:57 +0200 Subject: [PATCH] Check for invalid XID --- core-modules/000QubesVm.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core-modules/000QubesVm.py b/core-modules/000QubesVm.py index 2f662ba9..14e4b011 100644 --- a/core-modules/000QubesVm.py +++ b/core-modules/000QubesVm.py @@ -907,6 +907,8 @@ class QubesVm(object): if xid is None: xid = self.xid + assert xid >= 0, "Invalid XID value" + domain_path = xs.get_domain_path(xid) # Set Xen Store entires with VM networking info: