mirror of
https://github.com/curl/curl.git
synced 2026-08-24 16:13:43 +03:00
parent
b41c28e70a
commit
f0f84d1251
3 changed files with 10 additions and 1 deletions
|
|
@ -1440,6 +1440,10 @@ bool Curl_compareheader(const char *headerline, /* line to check */
|
|||
do
|
||||
curlx_str_passblanks(&p);
|
||||
while(!curlx_str_single(&p, ','));
|
||||
/* trailing blanks may move the parsing point past the value end,
|
||||
then there is nothing left to match */
|
||||
if((size_t)(p - o) > len)
|
||||
break;
|
||||
len -= (p - o);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue