summaryrefslogtreecommitdiffstats
path: root/chromium/third_party/nss/nss/lib/pk11wrap/pk11cxt.c
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/nss/nss/lib/pk11wrap/pk11cxt.c')
-rw-r--r--chromium/third_party/nss/nss/lib/pk11wrap/pk11cxt.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/chromium/third_party/nss/nss/lib/pk11wrap/pk11cxt.c b/chromium/third_party/nss/nss/lib/pk11wrap/pk11cxt.c
index 8aeb63ef262..d626ba72148 100644
--- a/chromium/third_party/nss/nss/lib/pk11wrap/pk11cxt.c
+++ b/chromium/third_party/nss/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;