mirror of
https://git.gnunet.org/libmicrohttpd.git
synced 2026-09-25 04:09:31 +03:00
digestauth: reject invalid 'nc' value
This commit is contained in:
@@ -1010,6 +1010,14 @@ digest_auth_check_all (struct MHD_Connection *connection,
|
||||
#endif
|
||||
return MHD_NO; /* invalid nonce format */
|
||||
}
|
||||
if (0 == nci)
|
||||
{
|
||||
#ifdef HAVE_MESSAGES
|
||||
MHD_DLOG (daemon,
|
||||
_ ("Authentication failed, invalid 'nc' value.\n"));
|
||||
#endif
|
||||
return MHD_NO; /* invalid nc value */
|
||||
}
|
||||
|
||||
/*
|
||||
* Checking if that combination of nonce and nc is sound
|
||||
|
||||
Reference in New Issue
Block a user