aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2021-04-01 20:07:23 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2021-04-01 21:33:45 +0300
commit876be0435307bf0904977c08fc9b8796ec28ae49 (patch)
tree778e93d3f061ca527f48b401b923a892cdca89f4
parenta25f48dafcd54d7e901c2e303b62ab618a6708c6 (diff)
downloadlibmicrohttpd-876be0435307bf0904977c08fc9b8796ec28ae49.tar.gz
libmicrohttpd-876be0435307bf0904977c08fc9b8796ec28ae49.zip
digestauth: fixed compiler warning
-rw-r--r--src/microhttpd/digestauth.c6
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