mirror of
https://github.com/curl/curl.git
synced 2026-08-26 01:33:33 +03:00
parent
ad837e9df8
commit
72abf7c13a
49 changed files with 199 additions and 162 deletions
|
|
@ -262,8 +262,9 @@ static size_t cookie_hash_domain(const char *domain, const size_t len)
|
|||
size_t h = 5381;
|
||||
|
||||
while(domain < end) {
|
||||
size_t j = (size_t)Curl_raw_toupper(*domain++);
|
||||
h += h << 5;
|
||||
h ^= Curl_raw_toupper(*domain++);
|
||||
h ^= j;
|
||||
}
|
||||
|
||||
return (h % COOKIE_HASH_SIZE);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue