diff options
Diffstat (limited to 'plugins/check_curl.c')
-rw-r--r-- | plugins/check_curl.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/check_curl.c b/plugins/check_curl.c index 6294fa0..d0871c4 100644 --- a/plugins/check_curl.c +++ b/plugins/check_curl.c | |||
@@ -2303,11 +2303,10 @@ curlhelp_parse_statusline (const char *buf, curlhelp_statusline *status_line) | |||
2303 | if( strchr( p, '.' ) != NULL ) { | 2303 | if( strchr( p, '.' ) != NULL ) { |
2304 | 2304 | ||
2305 | /* HTTP 1.x case */ | 2305 | /* HTTP 1.x case */ |
2306 | char *ppp; | 2306 | strtok( p, "." ); |
2307 | ppp = strtok( p, "." ); | ||
2308 | status_line->http_major = (int)strtol( p, &pp, 10 ); | 2307 | status_line->http_major = (int)strtol( p, &pp, 10 ); |
2309 | if( *pp != '\0' ) { free( first_line_buf ); return -1; } | 2308 | if( *pp != '\0' ) { free( first_line_buf ); return -1; } |
2310 | ppp = strtok( NULL, " " ); | 2309 | strtok( NULL, " " ); |
2311 | status_line->http_minor = (int)strtol( p, &pp, 10 ); | 2310 | status_line->http_minor = (int)strtol( p, &pp, 10 ); |
2312 | if( *pp != '\0' ) { free( first_line_buf ); return -1; } | 2311 | if( *pp != '\0' ) { free( first_line_buf ); return -1; } |
2313 | p += 4; /* 1.x SP */ | 2312 | p += 4; /* 1.x SP */ |