Blame SOURCES/0005-fix-bug-in-md5-code.patch

a66d21
From cc742279d0c83523f03a93882fce6bc820851750 Mon Sep 17 00:00:00 2001
a66d21
From: Paolo Bonzini <pbonzini@redhat.com>
a66d21
Date: Fri, 3 May 2013 12:43:50 +0200
a66d21
Subject: [RHEL7 libiscsi PATCH 05/18] fix bug in md5 code
a66d21
a66d21
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
a66d21
(cherry-picked from upstream commit cc742279d0c83523f03a93882fce6bc820851750)
a66d21
---
a66d21
 lib/md5.c | 2 +-
a66d21
 1 file changed, 1 insertion(+), 1 deletion(-)
a66d21
a66d21
diff --git a/lib/md5.c b/lib/md5.c
a66d21
index daab76c..893956d 100644
a66d21
--- a/lib/md5.c
a66d21
+++ b/lib/md5.c
a66d21
@@ -134,7 +134,7 @@ MD5Final(md5byte digest[16], struct MD5Context *ctx)
a66d21
 
a66d21
 	byteSwap(ctx->buf, 4);
a66d21
 	memcpy(digest, ctx->buf, 16);
a66d21
-	memset(ctx, 0, sizeof(ctx));	/* In case it's sensitive */
a66d21
+	memset(ctx, 0, sizeof(*ctx));	/* In case it's sensitive */
a66d21
 }
a66d21
 
a66d21
 #ifndef ASM_MD5
a66d21
-- 
a66d21
1.8.1.4
a66d21