diff options
-rw-r--r-- | NEWS | 1 | ||||
-rw-r--r-- | plugins/check_ntp.c | 2 | ||||
-rw-r--r-- | plugins/check_ntp_peer.c | 2 |
3 files changed, 3 insertions, 2 deletions
@@ -16,6 +16,7 @@ This file documents the major additions and syntax changes between releases. | |||
16 | check_icmp now reports min and max round trip time perfdata (Steve Rader) | 16 | check_icmp now reports min and max round trip time perfdata (Steve Rader) |
17 | Fixed bug where additional headers with redirection caused a segfault (Dieter Van de Walle - 2089159) | 17 | Fixed bug where additional headers with redirection caused a segfault (Dieter Van de Walle - 2089159) |
18 | check_disk: make autofs mount paths specified with -p before we determing the mount list (Erik Welch) | 18 | check_disk: make autofs mount paths specified with -p before we determing the mount list (Erik Welch) |
19 | Fixed buffer overflow in check_ntp/check_ntp_peer (#1999319, Ubuntu #291265) | ||
19 | 20 | ||
20 | 1.4.13 25th Sept 2008 | 21 | 1.4.13 25th Sept 2008 |
21 | Fix Debian bug #460097: check_http --max-age broken (Hilko Bengen) | 22 | Fix Debian bug #460097: check_http --max-age broken (Hilko Bengen) |
diff --git a/plugins/check_ntp.c b/plugins/check_ntp.c index 68c82d11..489ad60a 100644 --- a/plugins/check_ntp.c +++ b/plugins/check_ntp.c | |||
@@ -198,7 +198,7 @@ typedef struct { | |||
198 | /* NTP control message header is 12 bytes, plus any data in the data | 198 | /* NTP control message header is 12 bytes, plus any data in the data |
199 | * field, plus null padding to the nearest 32-bit boundary per rfc. | 199 | * field, plus null padding to the nearest 32-bit boundary per rfc. |
200 | */ | 200 | */ |
201 | #define SIZEOF_NTPCM(m) (12+ntohs(m.count)+((m.count)?4-(ntohs(m.count)%4):0)) | 201 | #define SIZEOF_NTPCM(m) (12+ntohs(m.count)+((ntohs(m.count)%4)?4-(ntohs(m.count)%4):0)) |
202 | 202 | ||
203 | /* finally, a little helper or two for debugging: */ | 203 | /* finally, a little helper or two for debugging: */ |
204 | #define DBG(x) do{if(verbose>1){ x; }}while(0); | 204 | #define DBG(x) do{if(verbose>1){ x; }}while(0); |
diff --git a/plugins/check_ntp_peer.c b/plugins/check_ntp_peer.c index 3add2737..e489a580 100644 --- a/plugins/check_ntp_peer.c +++ b/plugins/check_ntp_peer.c | |||
@@ -131,7 +131,7 @@ typedef struct { | |||
131 | /* NTP control message header is 12 bytes, plus any data in the data | 131 | /* NTP control message header is 12 bytes, plus any data in the data |
132 | * field, plus null padding to the nearest 32-bit boundary per rfc. | 132 | * field, plus null padding to the nearest 32-bit boundary per rfc. |
133 | */ | 133 | */ |
134 | #define SIZEOF_NTPCM(m) (12+ntohs(m.count)+((m.count)?4-(ntohs(m.count)%4):0)) | 134 | #define SIZEOF_NTPCM(m) (12+ntohs(m.count)+((ntohs(m.count)%4)?4-(ntohs(m.count)%4):0)) |
135 | 135 | ||
136 | /* finally, a little helper or two for debugging: */ | 136 | /* finally, a little helper or two for debugging: */ |
137 | #define DBG(x) do{if(verbose>1){ x; }}while(0); | 137 | #define DBG(x) do{if(verbose>1){ x; }}while(0); |