diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2013-11-28 07:57:46 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2013-11-28 07:57:46 +0000 |
commit | ce34b4b1bb9fa34da0cfd707764c72129400a5d5 (patch) | |
tree | 4ca3ddba13edd31e7b9e595941229fe612881f51 /libsylph | |
parent | db86c203b75aa4863021aaa2a409f90ee97fb934 (diff) |
libsylph/md5.c: MD5Final(): zero-clear the whole MD5Context struct as intended.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@3310 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'libsylph')
-rw-r--r-- | libsylph/md5.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libsylph/md5.c b/libsylph/md5.c index 639c2940..a047471f 100644 --- a/libsylph/md5.c +++ b/libsylph/md5.c @@ -200,7 +200,7 @@ MD5Final(guint8 digest[16], struct MD5Context *ctx) if (ctx->doByteReverse) byteReverse((guint8 *) ctx->buf, 4); g_memmove(digest, ctx->buf, 16); - memset(ctx, 0, sizeof(ctx)); /* In case it's sensitive */ + memset(ctx, 0, sizeof(*ctx)); /* In case it's sensitive */ } /* The four core functions - F1 is optimized somewhat */ |