| 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;
|
| }
|
|
|
|
|