summaryrefslogtreecommitdiff
path: root/module
diff options
context:
space:
mode:
Diffstat (limited to 'module')
-rw-r--r--module/bsnmp-jails.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/module/bsnmp-jails.c b/module/bsnmp-jails.c
index 542d30c..075ee50 100644
--- a/module/bsnmp-jails.c
+++ b/module/bsnmp-jails.c
@@ -721,6 +721,9 @@ measure_get_command (void)
char **args;
int i;
+ if (!jaildat_count)
+ return NULL;
+
args = calloc (jaildat_count + 4, sizeof (char*));
if (!args) {
emsg ("out of memory");