summaryrefslogtreecommitdiffstats
path: root/plugins/check_curl.c
diff options
context:
space:
mode:
authorwaja <waja@users.noreply.github.com>2023-06-28 14:39:27 (GMT)
committerGitHub <noreply@github.com>2023-06-28 14:39:27 (GMT)
commit265a7c0ed8ccde7868bb7e77c44aecc403743c21 (patch)
tree3a02f6ce03e8f781dcfca22ee1f17817225a0ff9 /plugins/check_curl.c
parentb96a8424f0ec6206238b650c2c63b4bd006ab43a (diff)
parentb24eb7f46ac8667324efd818c01d68d5a1376c89 (diff)
downloadmonitoring-plugins-265a7c0ed8ccde7868bb7e77c44aecc403743c21.tar.gz
Merge branch 'master' into compiler_warning_part_2refs/pull/1867/head
Diffstat (limited to 'plugins/check_curl.c')
-rw-r--r--plugins/check_curl.c5
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 */