diff --git a/qvm-tools/qvm-prefs b/qvm-tools/qvm-prefs index 021399aa..4ee1db1e 100755 --- a/qvm-tools/qvm-prefs +++ b/qvm-tools/qvm-prefs @@ -461,6 +461,10 @@ def set_qrexec_timeout(vms, vm, args): print >> sys.stderr, "Missing timeout value (seconds)!" return False + if int(args[0]) < 0: + print >> sys.stderr, "Negative timeout value not allowed!" + return False + vm.qrexec_timeout = int(args[0]) return True