aboutsummaryrefslogtreecommitdiffstats
path: root/ext/digest/md5/md5.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/digest/md5/md5.c')
-rw-r--r--ext/digest/md5/md5.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/digest/md5/md5.c b/ext/digest/md5/md5.c
index 518f8239ed..8d7d33c5a6 100644
--- a/ext/digest/md5/md5.c
+++ b/ext/digest/md5/md5.c
@@ -368,7 +368,7 @@ MD5_Update(MD5_CTX *pms, const uint8_t *data, size_t nbytes)
size_t offset = (pms->count[0] >> 3) & 63;
uint32_t nbits = (uint32_t)(nbytes << 3);
- if (nbytes <= 0)
+ if (nbytes == 0)
return;
/* Update the message length. */