mirror of
https://github.com/yrutschle/sslh.git
synced 2025-06-01 08:01:19 +03:00
rewind logged messages so it does not crash...
This commit is contained in:
parent
c595aadb4d
commit
408c5741f8
2
common.c
2
common.c
@ -561,7 +561,9 @@ void log_message(int type, const char* msg, ...)
|
|||||||
va_start(ap, msg);
|
va_start(ap, msg);
|
||||||
if (cfg.foreground)
|
if (cfg.foreground)
|
||||||
vfprintf(stderr, msg, ap);
|
vfprintf(stderr, msg, ap);
|
||||||
|
va_end(ap);
|
||||||
|
|
||||||
|
va_start(ap, msg);
|
||||||
vsyslog(type, msg, ap);
|
vsyslog(type, msg, ap);
|
||||||
va_end(ap);
|
va_end(ap);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user