From c8f8fcc5188a4a4af8f8e78f03c47f17be495f9c Mon Sep 17 00:00:00 2001 From: Russell Bryant Date: Wed, 14 Mar 2012 00:08:54 +0000 Subject: [PATCH] Fix incorrect sizeof() on a pointer in MD5Final(). git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@359059 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- main/md5.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/md5.c b/main/md5.c index 594c5eff5b..cbca747a36 100644 --- a/main/md5.c +++ b/main/md5.c @@ -157,7 +157,7 @@ void MD5Final(unsigned char digest[16], struct MD5Context *ctx) MD5Transform(ctx->buf, (uint32_t *) ctx->in); byteReverse((unsigned char *) ctx->buf, 4); 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 -- 2.47.2