diff options
Diffstat (limited to 'web/attachments/222809-check_ntp.startofvalue.patch')
-rw-r--r-- | web/attachments/222809-check_ntp.startofvalue.patch | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/web/attachments/222809-check_ntp.startofvalue.patch b/web/attachments/222809-check_ntp.startofvalue.patch new file mode 100644 index 0000000..998102b --- /dev/null +++ b/web/attachments/222809-check_ntp.startofvalue.patch | |||
@@ -0,0 +1,17 @@ | |||
1 | Index: plugins/check_ntp.c | ||
2 | =================================================================== | ||
3 | RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_ntp.c,v | ||
4 | retrieving revision 1.13 | ||
5 | diff -u -r1.13 check_ntp.c | ||
6 | --- plugins/check_ntp.c 28 Jan 2007 21:46:40 -0000 1.13 | ||
7 | +++ plugins/check_ntp.c 29 Mar 2007 11:33:26 -0000 | ||
8 | @@ -590,7 +590,8 @@ | ||
9 | if(verbose) { | ||
10 | printf("parsing jitter from peer %.2x: ", peers[i].assoc); | ||
11 | } | ||
12 | - startofvalue = strchr(req.data, '=') + 1; | ||
13 | + startofvalue = strchr(req.data, '='); | ||
14 | + if(startofvalue != NULL) startofvalue++; | ||
15 | if(startofvalue != NULL) { | ||
16 | jitter = strtod(startofvalue, &nptr); | ||
17 | } | ||