summaryrefslogtreecommitdiff
path: root/cipher/md.c
diff options
context:
space:
mode:
authorNIIBE Yutaka <gniibe@fsij.org>2021-12-07 11:34:17 +0900
committerNIIBE Yutaka <gniibe@fsij.org>2021-12-07 11:34:17 +0900
commit8ca3fe07d03e9329ee97534f40208593cde11bf7 (patch)
tree6be30a8da2d95b9753a9e84dd1abc25442cee39e /cipher/md.c
parente96980022e5ec079c9d4e3492eb6a1131c68e0f2 (diff)
downloadlibgcrypt-8ca3fe07d03e9329ee97534f40208593cde11bf7.tar.gz
md: Fix disabled check.
* cipher/md.c (md_enable): Fix accessing the disabled flag. -- Fixes-commit: 3152a565d9a426b6c984e161d1a95a8df347dc15 Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
Diffstat (limited to 'cipher/md.c')
-rw-r--r--cipher/md.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cipher/md.c b/cipher/md.c
index ea634a3f..524d6858 100644
--- a/cipher/md.c
+++ b/cipher/md.c
@@ -564,7 +564,7 @@ md_enable (gcry_md_hd_t hd, int algorithm)
}
/* Any non-FIPS algorithm should go this way */
- if (!err && spec->disabled)
+ if (!err && spec->flags.disabled)
err = GPG_ERR_DIGEST_ALGO;
if (!err && h->flags.hmac && spec->read == NULL)