diff options
Diffstat (limited to 'src/microhttpd/digestauth.c')
-rw-r--r-- | src/microhttpd/digestauth.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/microhttpd/digestauth.c b/src/microhttpd/digestauth.c index 3b6d94f7..6033c166 100644 --- a/src/microhttpd/digestauth.c +++ b/src/microhttpd/digestauth.c | |||
@@ -684,7 +684,6 @@ calculate_nonce (uint32_t nonce_time, | |||
684 | unsigned char timestamp[TIMESTAMP_BIN_SIZE]; | 684 | unsigned char timestamp[TIMESTAMP_BIN_SIZE]; |
685 | const unsigned int digest_size = da->digest_size; | 685 | const unsigned int digest_size = da->digest_size; |
686 | unsigned char tmpnonce[VLA_ARRAY_LEN_DIGEST (digest_size)]; | 686 | unsigned char tmpnonce[VLA_ARRAY_LEN_DIGEST (digest_size)]; |
687 | char timestamphex[TIMESTAMP_BIN_SIZE * 2 + 1]; | ||
688 | 687 | ||
689 | VLA_CHECK_LEN_DIGEST (digest_size); | 688 | VLA_CHECK_LEN_DIGEST (digest_size); |
690 | da->init (da->ctx); | 689 | da->init (da->ctx); |
@@ -727,10 +726,7 @@ calculate_nonce (uint32_t nonce_time, | |||
727 | nonce); | 726 | nonce); |
728 | cvthex (timestamp, | 727 | cvthex (timestamp, |
729 | sizeof (timestamp), | 728 | sizeof (timestamp), |
730 | timestamphex); | 729 | nonce + digest_size * 2); |
731 | strncat (nonce, | ||
732 | timestamphex, | ||
733 | 8); | ||
734 | } | 730 | } |
735 | 731 | ||
736 | 732 | ||