From 5edbfae8d119cb0518cb688c3a1ad9afc82ec67c Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Thu, 3 Nov 2016 23:31:53 -0700 Subject: [PATCH] md5 - Fix seg-fault * Fix seg-fault due to mixed API use. Reported-by: marino, others --- sbin/md5/md5.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbin/md5/md5.c b/sbin/md5/md5.c index 7125cdfde0..b77e1e30b3 100644 --- a/sbin/md5/md5.c +++ b/sbin/md5/md5.c @@ -91,7 +91,7 @@ typedef union { struct Algorithm_t Algorithm[] = { { "md5", "MD5", &MD5TestOutput, (DIGEST_Init*)&MD5Init, - (DIGEST_Update*)&MD5_Update, (DIGEST_End*)&MD5End, + (DIGEST_Update*)&MD5Update, (DIGEST_End*)&MD5End, &MD5Data, &MD5File }, { "sha1", "SHA1", &SHA1_TestOutput, (DIGEST_Init*)&SHA1_Init, (DIGEST_Update*)&SHA1_Update, (DIGEST_End*)&SHA1_End, -- 2.11.4.GIT