blob: 998102bb6a0a4cc6a226a08447c4a1359d620843 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
Index: plugins/check_ntp.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_ntp.c,v
retrieving revision 1.13
diff -u -r1.13 check_ntp.c
--- plugins/check_ntp.c 28 Jan 2007 21:46:40 -0000 1.13
+++ plugins/check_ntp.c 29 Mar 2007 11:33:26 -0000
@@ -590,7 +590,8 @@
if(verbose) {
printf("parsing jitter from peer %.2x: ", peers[i].assoc);
}
- startofvalue = strchr(req.data, '=') + 1;
+ startofvalue = strchr(req.data, '=');
+ if(startofvalue != NULL) startofvalue++;
if(startofvalue != NULL) {
jitter = strtod(startofvalue, &nptr);
}
|