Skip to content

Commit 71c543f

Browse files
committed
digestauth: fixed compiler warnings
1 parent 07fa8f0 commit 71c543f

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

src/microhttpd/digestauth.c

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3545,9 +3545,10 @@ queue_auth_required_response3_inner (struct MHD_Connection *connection,
35453545
#endif /* HAVE_MESSAGES */
35463546
return MHD_NO;
35473547
}
3548-
malgo3 &=
3549-
(enum MHD_DigestAuthMultiQOP)
3550-
(~((enum MHD_DigestAuthMultiQOP) MHD_DIGEST_AUTH_ALGO3_NON_SESSION));
3548+
malgo3 =
3549+
(enum MHD_DigestAuthMultiAlgo3)
3550+
(malgo3
3551+
& (~((enum MHD_DigestAuthMultiAlgo3) MHD_DIGEST_AUTH_ALGO3_NON_SESSION)));
35513552
#ifdef MHD_MD5_SUPPORT
35523553
if (0 != (((unsigned int) malgo3) & MHD_DIGEST_BASE_ALGO_MD5))
35533554
s_algo = MHD_DIGEST_AUTH_ALGO3_MD5;
@@ -3580,8 +3581,10 @@ queue_auth_required_response3_inner (struct MHD_Connection *connection,
35803581

35813582
if (MHD_DIGEST_AUTH_MULT_QOP_AUTH_INT == mqop)
35823583
MHD_PANIC (_ ("Wrong 'mqop' value, API violation"));
3583-
mqop &= (enum MHD_DigestAuthMultiQOP)
3584-
(~((enum MHD_DigestAuthMultiQOP) MHD_DIGEST_AUTH_QOP_AUTH_INT));
3584+
3585+
mqop = (enum MHD_DigestAuthMultiQOP)
3586+
(mqop
3587+
& (~((enum MHD_DigestAuthMultiQOP) MHD_DIGEST_AUTH_QOP_AUTH_INT)));
35853588

35863589
if (! digest_init_one_time (da, get_base_digest_algo (s_algo)))
35873590
MHD_PANIC (_ ("Wrong 'algo' value, API violation"));

0 commit comments

Comments
 (0)