소스 검색

Merge pull request #402 from 2005wind/maint

fix use '-N' cause CRITICAL - Socket
Sebastian Wolf 6 년 전
부모
커밋
fcae845741
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      plugins/check_http.c

+ 1 - 1
plugins/check_http.c

@@ -1257,7 +1257,7 @@ check_http (void)
 
     for (;;) {
 
-        if ((page == NULL) || !strncmp(page, "\r\n\r\n", 4) || !strncmp(page, "\n\n", 2))
+        if ((page == NULL) || !strncmp(page, "\r\n\r\n", 4) || !strncmp(page, "\n\n", 2) || *page == '\0' )
             break;
 
         while (*page == '\r' || *page == '\n') {