aboutsummaryrefslogtreecommitdiff
path: root/plugins/check_ntp.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/check_ntp.c')
-rw-r--r--plugins/check_ntp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/check_ntp.c b/plugins/check_ntp.c
index 9fbdedd6..8b49928a 100644
--- a/plugins/check_ntp.c
+++ b/plugins/check_ntp.c
@@ -595,7 +595,8 @@ double jitter_request(const char *host, int *status){
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);
}