Karlson2k / libmicrohttpd

GNU libmicrohttpd repository unofficial mirror on GitHub
https://www.gnu.org/software/libmicrohttpd/
Other
101 stars 29 forks source link

identical expression #31

Closed maddin200 closed 3 months ago

maddin200 commented 3 months ago

File: src\microhttpd\digestauth.c line 218

Code: base_algo = ((unsigned int) algo3) & ~((unsigned int) (MHD_DIGEST_AUTH_ALGO3_NON_SESSION // <-- identical | MHD_DIGEST_AUTH_ALGO3_NON_SESSION));

Karlson2k commented 3 months ago

Thanks, good catch! Fixed by a00142f00480a34990298cb6d8ef299ccb19d8cd

maddin200 commented 3 months ago

same holds for line 3570 Code: if (0 == (((unsigned int) malgo3) & (MHD_DIGEST_BASE_ALGO_MD5 | MHD_DIGEST_BASE_ALGO_SHA512_256 | MHD_DIGEST_BASE_ALGO_SHA512_256))) // <-- identical

Karlson2k commented 3 months ago

Thanks!

Fixed by d94229422f07a8023dac2c32638b012b7a73b47a