diff options
author | julien.pierre.bugs%sun.com <devnull@localhost> | 2004-10-22 22:38:52 +0000 |
---|---|---|
committer | julien.pierre.bugs%sun.com <devnull@localhost> | 2004-10-22 22:38:52 +0000 |
commit | 6d40d6d240006384d0609ffb9143ce1ed3ec2225 (patch) | |
tree | ce9cc62ae9537c445fcde7353e053e193f721a76 | |
parent | d66af336247019197938df61023c8385a3b47760 (diff) | |
download | nss-hg-6d40d6d240006384d0609ffb9143ce1ed3ec2225.tar.gz |
Fix for 265504 - cmsutil dumps core with invalid option set. r=wtc
-rw-r--r-- | security/nss/cmd/smimetools/cmsutil.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/security/nss/cmd/smimetools/cmsutil.c b/security/nss/cmd/smimetools/cmsutil.c index ddaef6c83..0bfef1a56 100644 --- a/security/nss/cmd/smimetools/cmsutil.c +++ b/security/nss/cmd/smimetools/cmsutil.c @@ -1287,6 +1287,10 @@ main(int argc, char **argv) } break; case 'i': + if (!optstate->value) { + fprintf(stderr, "-i option requires filename argument\n"); + exit(1); + } inFile = PR_Open(optstate->value, PR_RDONLY, 00660); if (inFile == NULL) { fprintf(stderr, "%s: unable to open \"%s\" for reading\n", |