summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cipher/hash-common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cipher/hash-common.c b/cipher/hash-common.c
index 9a007e12..6743f09b 100644
--- a/cipher/hash-common.c
+++ b/cipher/hash-common.c
@@ -111,7 +111,7 @@ _gcry_md_block_write (void *context, const void *inbuf_arg, size_t inlen)
if (sizeof(hd->buf) < blocksize)
BUG();
- if (hd->buf == NULL || hd->bwrite == NULL)
+ if (!hd->bwrite)
return;
if (hd->count == blocksize) /* Flush the buffer. */