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

Unified Diff: nss/mozilla/security/nss/lib/softoken/sftkmod.c

Issue 9474027: Update to NSS 3.13.3. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/
Patch Set: Created 8 years, 10 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
« no previous file with comments | « nss/mozilla/security/nss/lib/softoken/secmodt.h ('k') | nss/mozilla/security/nss/lib/softoken/softkver.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: nss/mozilla/security/nss/lib/softoken/sftkmod.c
===================================================================
--- nss/mozilla/security/nss/lib/softoken/sftkmod.c (revision 123816)
+++ nss/mozilla/security/nss/lib/softoken/sftkmod.c (working copy)
@@ -54,6 +54,7 @@
#include "prprf.h"
#include "prsystem.h"
#include "lgglue.h"
+#include "secerr.h"
#include "secmodt.h"
#if defined (_WIN32)
#include <io.h>
@@ -562,6 +563,7 @@
PRBool found = PR_FALSE;
if (dbname == NULL) {
+ PORT_SetError(SEC_ERROR_INVALID_ARGS);
return SECFailure;
}
@@ -570,6 +572,7 @@
}
if (!rw) {
+ PORT_SetError(SEC_ERROR_READ_ONLY);
return SECFailure;
}
@@ -689,6 +692,7 @@
PRBool libFound = PR_FALSE;
if (dbname == NULL) {
+ PORT_SetError(SEC_ERROR_INVALID_ARGS);
return SECFailure;
}
@@ -698,6 +702,7 @@
/* can't write to a read only module */
if (!rw) {
+ PORT_SetError(SEC_ERROR_READ_ONLY);
return SECFailure;
}
« no previous file with comments | « nss/mozilla/security/nss/lib/softoken/secmodt.h ('k') | nss/mozilla/security/nss/lib/softoken/softkver.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698