diff options
author | Glenn Strauss <gstrauss@gluelogic.com> | 2021-03-08 20:24:16 -0500 |
---|---|---|
committer | Glenn Strauss <gstrauss@gluelogic.com> | 2021-03-08 20:24:16 -0500 |
commit | 8b52995c1d5c5c8031919011ec1d9673234aa404 (patch) | |
tree | ff969b3dc0f71fa82542cb7c31968ca6871ba89d /src/mod_auth.c | |
parent | 8c7dbf1a2145324720c4e30dd6e317680898a46b (diff) | |
download | lighttpd-git-8b52995c1d5c5c8031919011ec1d9673234aa404.tar.gz |
[multiple] use binary '|' to reconstruct ts
Diffstat (limited to 'src/mod_auth.c')
-rw-r--r-- | src/mod_auth.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mod_auth.c b/src/mod_auth.c index 45ed5565..03d9daa7 100644 --- a/src/mod_auth.c +++ b/src/mod_auth.c @@ -1386,7 +1386,7 @@ static handler_t mod_auth_check_digest(request_st * const r, void *p_d, const st time_t ts = 0; const unsigned char * const nonce_uns = (unsigned char *)nonce; for (i = 0; i < 8 && light_isxdigit(nonce_uns[i]); ++i) { - ts =(time_t)((uint32_t)ts << 4) + hex2int(nonce_uns[i]); + ts =(time_t)((uint32_t)ts << 4) | hex2int(nonce_uns[i]); } const time_t cur_ts = log_epoch_secs; if (nonce[i] != ':' |