aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/bls_c.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bls_c.cpp b/src/bls_c.cpp
index dd7a818..d443eaa 100644
--- a/src/bls_c.cpp
+++ b/src/bls_c.cpp
@@ -161,7 +161,7 @@ int blsVerifyPop(const blsSignature *sig, const blsPublicKey *pub)
{
char buf[1024];
mclSize n = mclBnG2_serialize(buf, sizeof(buf), &pub->v);
- assert(n);
+ if (n == 0) return 0;
return blsVerify(sig, pub, buf, n);
}