| Index: net/socket/ssl_session_cache_openssl.cc
|
| diff --git a/net/socket/ssl_session_cache_openssl.cc b/net/socket/ssl_session_cache_openssl.cc
|
| index 8aaa9a08660ca710c7d830393d879bdcba25832f..65b5aaf8e81893c496b58fda4efc5843f2170de9 100644
|
| --- a/net/socket/ssl_session_cache_openssl.cc
|
| +++ b/net/socket/ssl_session_cache_openssl.cc
|
| @@ -87,8 +87,9 @@ struct SessionId {
|
| // this one is just simple enough to do the job.
|
| size_t ComputeHash(const unsigned char* id, unsigned id_len) {
|
| size_t result = 0;
|
| - for (unsigned n = 0; n < id_len; ++n)
|
| - result += 131 * id[n];
|
| + for (unsigned n = 0; n < id_len; ++n) {
|
| + result = (result * 131) + id[n];
|
| + }
|
| return result;
|
| }
|
| };
|
|
|