diff options
Diffstat (limited to 'linux/src/api/gates/GateMP.c')
-rw-r--r-- | linux/src/api/gates/GateMP.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/linux/src/api/gates/GateMP.c b/linux/src/api/gates/GateMP.c index e71629d..9a0024f 100644 --- a/linux/src/api/gates/GateMP.c +++ b/linux/src/api/gates/GateMP.c @@ -390,6 +390,12 @@ Int GateMP_open(String name, GateMP_Handle *handle) *handle = NULL; status = GateMP_E_NOTFOUND; } + else if (len != sizeof(nsValue)) { + *handle = NULL; + status = GateMP_E_NOTFOUND; + PRINTVERBOSE0("GateMP configuration not valid for hostSupport. " + "Try adding hostSupport to your config if it is needed.\n"); + } else { arg = nsValue[2]; mask = nsValue[3]; |