Skip to content
Snippets Groups Projects
Commit 1a4a7f37 authored by Tristan Matthews's avatar Tristan Matthews
Browse files

* #27095: iax: zero out IAXContext correctly

parent 236e999b
Branches
Tags
No related merge requests found
...@@ -177,7 +177,7 @@ void IAX_MD5Final(uint8_t digest[16], struct IAX_MD5Context *ctx) ...@@ -177,7 +177,7 @@ void IAX_MD5Final(uint8_t digest[16], struct IAX_MD5Context *ctx)
IAX_MD5Transform(ctx->buf, (uint32_t *) ctx->in); IAX_MD5Transform(ctx->buf, (uint32_t *) ctx->in);
IAX_byteReverse((uint8_t *) ctx->buf, 4); IAX_byteReverse((uint8_t *) ctx->buf, 4);
memcpy(digest, ctx->buf, 16); memcpy(digest, ctx->buf, 16);
memset(ctx, 0, sizeof(ctx)); /* In case it's sensitive */ memset(ctx, 0, sizeof(*ctx)); /* In case it's sensitive */
} }
#ifndef ASM_MD5 #ifndef ASM_MD5
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment