summaryrefslogtreecommitdiffstats
path: root/web/attachments/222809-check_ntp.startofvalue.patch
diff options
context:
space:
mode:
authorHolger Weiss <holger@zedat.fu-berlin.de>2013-09-29 22:03:24 (GMT)
committerHolger Weiss <holger@zedat.fu-berlin.de>2013-09-29 22:03:24 (GMT)
commit0b6423f9c99d9edf8c96fefd0f6c453859395aa1 (patch)
tree1c2b6b21704a294940f87c7892676998d8371707 /web/attachments/222809-check_ntp.startofvalue.patch
downloadsite-0b6423f9c99d9edf8c96fefd0f6c453859395aa1.tar.gz
Import Nagios Plugins site
Import the Nagios Plugins web site, Cronjobs, infrastructure scripts, and configuration files.
Diffstat (limited to 'web/attachments/222809-check_ntp.startofvalue.patch')
-rw-r--r--web/attachments/222809-check_ntp.startofvalue.patch17
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 @@
1Index: plugins/check_ntp.c
2===================================================================
3RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_ntp.c,v
4retrieving revision 1.13
5diff -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 }