bus: Properly va_copy() argument list before passing it to printf() functions
authorMartin Willi <martin@revosec.ch>
Thu, 19 Jun 2014 08:10:54 +0000 (10:10 +0200)
committerMartin Willi <martin@revosec.ch>
Thu, 19 Jun 2014 08:10:54 +0000 (10:10 +0200)
commit8b855a97c2f0e4b1faabcc7ed1d6be5f53514e75
treec90cd42b6acffe19d68674cbf083e0935ea5e25c
parent758dc8a953639d7522b31004d2261ed04b474d7a
bus: Properly va_copy() argument list before passing it to printf() functions

As we later potentially use args again, we can't consume it with printf
functions without copying it first. Clone list before passing it to any
consuming function.

Fixes #621.
src/libcharon/bus/bus.c