sws: fix checking sscanf() return value

Closes #18565
This commit is contained in:
Viktor Szakats 2025-09-16 12:47:27 +02:00
parent 619307feb0
commit ea752b575c
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201

View file

@ -330,7 +330,7 @@ static int sws_ProcessRequest(struct sws_httprequest *req)
size_t npath = 0; /* httppath length */
if(sscanf(line,
"%" REQUEST_KEYWORD_SIZE_TXT"s ", request)) {
"%" REQUEST_KEYWORD_SIZE_TXT"s ", request) == 1) {
http = strstr(line + strlen(request), "HTTP/");
if(http && sscanf(http, "HTTP/%d.%d",