# HG changeset patch # User Matti Hamalainen # Date 1353339723 -7200 # Node ID b31d420b7feec83b7acc1216c2dd6692440c6f8c # Parent 79f20427c99dfa3bd739d129c8e44dcd037811ce Actually clear the whole xs_md5state_t structure, instead of incorrectly using sizeof(ctx) whereas sizeof(*ctx) should have been used. diff -r 79f20427c99d -r b31d420b7fee src/xs_support.c --- a/src/xs_support.c Mon Nov 19 17:41:02 2012 +0200 +++ b/src/xs_support.c Mon Nov 19 17:42:03 2012 +0200 @@ -423,7 +423,7 @@ xs_md5_transform(ctx->buf, (guint32 *) ctx->in); xs_md5_bytereverse((guint8 *) ctx->buf, 4); memcpy(digest, ctx->buf, 16); - memset(ctx, 0, sizeof(ctx)); + memset(ctx, 0, sizeof(*ctx)); }