diff options
Diffstat (limited to 'lib/http.c')
-rw-r--r-- | lib/http.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/http.c b/lib/http.c index 1bef121a9..caa14bbd9 100644 --- a/lib/http.c +++ b/lib/http.c @@ -4244,7 +4244,7 @@ CURLcode Curl_http_readwrite_headers(struct Curl_easy *data, The sscanf() line above will also allow zero-prefixed and negative numbers, so we check for that too here. */ - else if(ISDIGIT(digit4) || (k->httpcode < 100)) { + else if(ISDIGIT(digit4) || (nc >= 4 && k->httpcode < 100)) { failf(data, "Unsupported response code in HTTP response"); return CURLE_UNSUPPORTED_PROTOCOL; } |