Skip to content

Commit 1bb2b53

Browse files
gpsheadpicnixz
andauthored
remove overzealous assert.
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
1 parent 2525480 commit 1bb2b53

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

Modules/_hashopenssl.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2217,7 +2217,6 @@ _hashlib_hmac_digest_size(HMACobject *self)
22172217
}
22182218
int digest_size = EVP_MD_size(md);
22192219
/* digest_size < 0 iff EVP_MD context is NULL (which is impossible here) */
2220-
assert(digest_size > 0);
22212220
assert(digest_size <= (int)EVP_MAX_MD_SIZE);
22222221
if (digest_size < 0) {
22232222
raise_ssl_error(PyExc_SystemError, "invalid digest size");

0 commit comments

Comments
 (0)