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