diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-01-07 16:32:50 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-01-07 16:32:50 +0000 |
commit | cee75ea2bf528d7d465cfa224128228926287446 (patch) | |
tree | 55fd09d83170d71a8add65ae2c6d00c56a8e19f2 /src/daemon/digestauth.c | |
parent | 20e37fdb3ded4749207e8cfb74a1f8aa572b289d (diff) | |
download | libmicrohttpd-cee75ea2bf528d7d465cfa224128228926287446.tar.gz libmicrohttpd-cee75ea2bf528d7d465cfa224128228926287446.zip |
fix nonce counter base - #2061
Diffstat (limited to 'src/daemon/digestauth.c')
-rw-r--r-- | src/daemon/digestauth.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/daemon/digestauth.c b/src/daemon/digestauth.c index ca23925e..472811e8 100644 --- a/src/daemon/digestauth.c +++ b/src/daemon/digestauth.c | |||
@@ -551,7 +551,7 @@ MHD_digest_auth_check(struct MHD_Connection *connection, | |||
551 | (0 == lookup_sub_value(nc, sizeof (nc), header, "nc")) || | 551 | (0 == lookup_sub_value(nc, sizeof (nc), header, "nc")) || |
552 | (0 == lookup_sub_value(response, sizeof (response), header, "response")) ) | 552 | (0 == lookup_sub_value(response, sizeof (response), header, "response")) ) |
553 | return MHD_NO; | 553 | return MHD_NO; |
554 | nci = strtoul (nc, &end, 10); | 554 | nci = strtoul (nc, &end, 16); |
555 | if ( ('\0' != *end) || | 555 | if ( ('\0' != *end) || |
556 | ( (LONG_MAX == nci) && (errno == ERANGE) ) ) | 556 | ( (LONG_MAX == nci) && (errno == ERANGE) ) ) |
557 | return MHD_NO; /* invalid nonce */ | 557 | return MHD_NO; /* invalid nonce */ |