git: dntpd - Fix va_list handling bug crash

Matthew Dillon dillon at crater.dragonflybsd.org
Fri Apr 24 10:22:58 PDT 2015


commit 213437aae8bd61ac7d6372d0c2cd92c4c1526023
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Fri Apr 24 10:22:02 2015 -0700

    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.

Summary of changes:
 usr.sbin/dntpd/log.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/213437aae8bd61ac7d6372d0c2cd92c4c1526023


-- 
DragonFly BSD source repository



More information about the Commits mailing list