summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--res/res_pjsip_authenticator_digest.c2
-rw-r--r--tests/test_utils.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/res/res_pjsip_authenticator_digest.c b/res/res_pjsip_authenticator_digest.c
index e0f633fce..3485a69af 100644
--- a/res/res_pjsip_authenticator_digest.c
+++ b/res/res_pjsip_authenticator_digest.c
@@ -200,7 +200,7 @@ static int build_nonce(struct ast_str **nonce, const char *timestamp, const pjsi
{
struct ast_str *str = ast_str_alloca(256);
RAII_VAR(char *, eid, ao2_global_obj_ref(entity_id), ao2_cleanup);
- char hash[32];
+ char hash[33];
ast_str_append(&str, 0, "%s", timestamp);
ast_str_append(&str, 0, ":%s", rdata->pkt_info.src_name);
diff --git a/tests/test_utils.c b/tests/test_utils.c
index f956e5b27..9150fccf4 100644
--- a/tests/test_utils.c
+++ b/tests/test_utils.c
@@ -202,7 +202,7 @@ AST_TEST_DEFINE(md5_test)
ast_test_status_update(test, "Testing MD5 ...\n");
for (i = 0; i < ARRAY_LEN(tests); i++) {
- char md5_hash[32];
+ char md5_hash[33];
ast_md5_hash(md5_hash, tests[i].input);
if (strcasecmp(md5_hash, tests[i].expected_output)) {
ast_test_status_update(test,