From 22abf1c85f0c3ccebb3b3b6675e7770e6f665241 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Fri, 16 Jan 2009 18:13:37 +0000 Subject: - Don't run jail-measure if no jails are running. --- module/bsnmp-jails.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'module') 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"); -- cgit v1.2.3