diff options
author | roberto <roberto@FreeBSD.org> | 2009-12-12 22:29:30 +0000 |
---|---|---|
committer | roberto <roberto@FreeBSD.org> | 2009-12-12 22:29:30 +0000 |
commit | 76d0d9559c6c64adb0eec290749ddb0bc85c99ec (patch) | |
tree | 5a9f13891d1608baf9ad2436ec526b57ad47d3e6 /include/ntp_debug.h | |
parent | c5461d7d838ecf010f9a551e548b1330f2201aaa (diff) | |
download | FreeBSD-src-76d0d9559c6c64adb0eec290749ddb0bc85c99ec.zip FreeBSD-src-76d0d9559c6c64adb0eec290749ddb0bc85c99ec.tar.gz |
Update ntp vendor code to 4.2.4p8.
This is mainly to fix CVE-2009-3563, a remote DOS.
MFC after: 3 days
Security: CVE-2009-3563
Diffstat (limited to 'include/ntp_debug.h')
-rw-r--r-- | include/ntp_debug.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/include/ntp_debug.h b/include/ntp_debug.h index 376b24b..55b2e1a 100644 --- a/include/ntp_debug.h +++ b/include/ntp_debug.h @@ -13,11 +13,13 @@ */ #ifdef DEBUG -#define DPRINTF(_lvl_, _arg_) \ - if (debug >= (_lvl_)) \ - printf _arg_; +#define DPRINTF(_lvl_, _arg_) \ + do { \ + if (debug >= (_lvl_)) \ + printf _arg_; \ + } while (0) #else -#define DPRINTF(_lvl_, _arg_) +#define DPRINTF(_lvl_, _arg_) do {} while (0) #endif #endif |