Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(454)

Unified Diff: nss/lib/pk11wrap/pk11cxt.c

Issue 319593003: Update to NSS 3.16.2 Beta 3. (Closed) Base URL: http://src.chromium.org/svn/trunk/deps/third_party/nss
Patch Set: Remove unused function SEC_NumberOrNameStringToOIDTag Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;

Powered by Google App Engine
This is Rietveld 408576698