netifd: fix undefined va_list value which can cause crashes
authorMikael Magnusson <mikma@users.sourceforge.net>
Fri, 15 Dec 2023 22:19:47 +0000 (23:19 +0100)
committerFelix Fietkau <nbd@nbd.name>
Mon, 18 Dec 2023 10:47:15 +0000 (11:47 +0100)
commit730b4656e6b1349506316dab2a8d90399eab39d8
tree42592a2989c2444425220b4f576bf3c0d3c64c32
parent66a7652176a7580b55076a0975b77c2bfb5bf7ce
netifd: fix undefined va_list value which can cause crashes

Reinitialize the va_list value after the call
to netifd_udebug_vprintf() in netifd_log_message().

It's needed since netifd_udebug_vprintf() invokes vsnprintf()
which in turn invokes the va_arg() macro, and after that call
the va_list value is undefined.

Signed-off-by: Mikael Magnusson <mikma@users.sourceforge.net>
main.c