[server] varargs cleanup bug fix found by Coverity
authorMichael Rash <mbr@cipherdyne.org>
Tue, 14 May 2013 00:42:07 +0000 (20:42 -0400)
committerMichael Rash <mbr@cipherdyne.org>
Tue, 14 May 2013 00:42:07 +0000 (20:42 -0400)
server/log_msg.c

index 0f3861f..48d6950 100644 (file)
@@ -164,7 +164,10 @@ log_msg(int level, char* msg, ...)
         va_end(apse);
 
         if(LOG_STDERR_ONLY & level)
+        {
+            va_end(ap);
             return;
+        }
 
         /* Remove the log to stderr flag from the log level value.
         */