From 88f8de8214d58e860c11a5d07f045a2618f30ddc Mon Sep 17 00:00:00 2001 From: mtbishop Date: Sun, 7 Jul 2013 20:21:20 +0000 Subject: [PATCH] Buy in changes to fix bug53 - race condition in socket - patch from alfred heisner --- lib.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib.c b/lib.c index 9c703f4..acdd344 100644 --- a/lib.c +++ b/lib.c @@ -17,7 +17,7 @@ */ /* - * $Id: lib.c,v 1.9.2.3 2013/07/07 19:54:56 mtbishop Exp $ + * $Id: lib.c,v 1.9.2.4 2013/07/07 20:21:20 mtbishop Exp $ */ #include "config.h" @@ -360,6 +360,7 @@ void vtun_syslog (int priority, char *format, ...) va_start(ap, format); vsnprintf(buf, sizeof(buf)-1, format, ap); syslog(priority, "%s", buf); + closelog(); va_end(ap); in_syslog = 0;