diff --git a/src/microhttpd/response.c b/src/microhttpd/response.c index ed1326ab..7eaf305d 100644 --- a/src/microhttpd/response.c +++ b/src/microhttpd/response.c @@ -352,8 +352,8 @@ add_response_header_connection (struct MHD_Response *response, key, key_len); already_has_close = (0 != (response->flags_auto & MHD_RAF_HAS_CONNECTION_CLOSE)); - mhd_assert (already_has_close == (0 == memcmp (hdr->value, "close", 5))); mhd_assert (NULL != hdr); + mhd_assert (already_has_close == (0 == memcmp (hdr->value, "close", 5))); } else { diff --git a/src/microhttpd/sha256.c b/src/microhttpd/sha256.c index 073fa546..884e94ab 100644 --- a/src/microhttpd/sha256.c +++ b/src/microhttpd/sha256.c @@ -327,7 +327,7 @@ sha256_transform (uint32_t H[SHA256_DIGEST_SIZE_WORDS], unsigned int t; /* K constants array. See FIPS PUB 180-4 paragraph 4.2.2 for K values. */ - static const uint32_t K[80] = + static const uint32_t K[64] = { UINT32_C (0x428a2f98), UINT32_C (0x71374491), UINT32_C (0xb5c0fbcf), UINT32_C (0xe9b5dba5), UINT32_C (0x3956c25b), UINT32_C (0x59f111f1), UINT32_C (0x923f82a4), UINT32_C (0xab1c5ed5), UINT32_C (0xd807aa98),