Ver Fonte

digestauth: explicitly reject unsupported algorithm requested by application

Evgeny Grin (Karlson2k) há 1 ano atrás
pai
commit
eb3725dc3a
1 ficheiros alterados com 2 adições e 1 exclusões
  1. 2 1
      src/microhttpd/digestauth.c

+ 2 - 1
src/microhttpd/digestauth.c

@@ -3537,7 +3537,8 @@ queue_auth_required_response3_inner (struct MHD_Connection *connection,
   size_t p; /* The position in the buffer */
   char *hdr_name;
 
-  if (0 == (((unsigned int) malgo3) & MHD_DIGEST_AUTH_ALGO3_NON_SESSION))
+  if ((0 == (((unsigned int) malgo3) & MHD_DIGEST_AUTH_ALGO3_NON_SESSION)) ||
+      (0 != (((unsigned int) malgo3) & MHD_DIGEST_AUTH_ALGO3_SESSION)))
   {
 #ifdef HAVE_MESSAGES
     MHD_DLOG (connection->daemon,