From 88f8d9afaadacd0d1cbdcdaf0a2216474cd16711 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Fri, 1 Oct 2010 21:58:51 +0000 Subject: Fix crash when printing output --- module/bsnmp-jails.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'module') diff --git a/module/bsnmp-jails.c b/module/bsnmp-jails.c index cfd0008..034c6d0 100644 --- a/module/bsnmp-jails.c +++ b/module/bsnmp-jails.c @@ -260,6 +260,8 @@ emsg(const char *format, ...) va_list va; va_start (va, format); vsyslog (LOG_ERR, format, va); + va_end (va); + va_start (va, format); vfprintf (stderr, format, va); fputc ('\n', stderr); va_end (va); -- cgit v1.2.3