Index: nss/lib/pk11wrap/pk11cxt.c |
diff --git a/nss/lib/pk11wrap/pk11cxt.c b/nss/lib/pk11wrap/pk11cxt.c |
index 8aeb63ef262a6818a475750a0f53268688b3cee2..d626ba72148b6ae02059ed59115e38d6a3c5e854 100644 |
--- a/nss/lib/pk11wrap/pk11cxt.c |
+++ b/nss/lib/pk11wrap/pk11cxt.c |
@@ -754,6 +754,9 @@ PK11_DigestOp(PK11Context *context, const unsigned char * in, unsigned inLen) |
CK_RV crv = CKR_OK; |
SECStatus rv = SECSuccess; |
+ if (inLen == 0) { |
+ return SECSuccess; |
+ } |
if (!in) { |
PORT_SetError(SEC_ERROR_INVALID_ARGS); |
return SECFailure; |