mirror of
https://repo.or.cz/socat.git
synced 2025-07-12 22:53:24 +00:00
Failing name resolution could lead to SIGSEGV
This commit is contained in:
parent
6b596b8852
commit
1de74d4ca9
3 changed files with 6 additions and 2 deletions
2
error.c
2
error.c
|
@ -232,7 +232,7 @@ void msg(int level, const char *format, ...) {
|
|||
diag_flush();
|
||||
}
|
||||
|
||||
if (level < diagopts.msglevel) { va_end(ap); return; }
|
||||
if (level < diagopts.msglevel) { return; }
|
||||
va_start(ap, format);
|
||||
|
||||
/* we do only a minimum in the outer parts which may run in a signal handler
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue