dntpd - Fix va_list handling bug crash
authorMatthew Dillon <dillon@apollo.backplane.com>
Fri, 24 Apr 2015 17:22:02 +0000 (10:22 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Fri, 24 Apr 2015 17:22:02 +0000 (10:22 -0700)
commit213437aae8bd61ac7d6372d0c2cd92c4c1526023
tree2050d7d0e42834c39de6a97940f5453ee2192cf9
parentd979d7131abb9a0d5a29b9dd28aebe6c8c327ab4
dntpd - Fix va_list handling bug crash

* Later versions of gcc manipulate va_lists in ways that prevent them from
  being reused, use va_copy() to make a copy in the log code which uses
  the va_list twice.

* Fixes a seg-fault on startup.
usr.sbin/dntpd/log.c