libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit 82ff096dd4ceda1177bc925c3d6845998e692590
parent 4b3895dd4aa47e550839c11889381e8442e20a4e
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date:   Fri,  6 May 2022 15:15:56 +0300

Added one more fallback for unique nonce generation

Diffstat:
Msrc/microhttpd/digestauth.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/microhttpd/digestauth.c b/src/microhttpd/digestauth.c @@ -992,6 +992,8 @@ calculate_add_nonce_with_retry (struct MHD_Connection *const connection, base3 = ((uint16_t) (base2 >> 16)) ^ ((uint16_t) base2); base4 = ((uint8_t) (base3 >> 8)) ^ ((uint8_t) base3); timestamp2 -= (base4 & 0x7f); /* Use up to 127 ms difference */ + if (timestamp1 == timestamp2) + timestamp2 -= 2; } if (! calculate_add_nonce (connection, timestamp2, realm, da, nonce2)) {