Skip to content
Snippets Groups Projects
Commit 543a3674 authored by julien.pierre.bugs%sun.com's avatar julien.pierre.bugs%sun.com
Browse files

Fix for bug 292390 . Prevent crash in certutil with -P option and dbprefix omitted.

parent 28bb3d45
No related branches found
No related tags found
No related merge requests found
......@@ -2482,8 +2482,13 @@ secuCommandFlag certutil_options[] =
}
/* -P certdb name prefix */
if (certutil.options[opt_DBPrefix].activated)
certPrefix = strdup(certutil.options[opt_DBPrefix].arg);
if (certutil.options[opt_DBPrefix].activated) {
if (certutil.options[opt_DBPrefix].arg) {
certPrefix = strdup(certutil.options[opt_DBPrefix].arg);
} else {
Usage(progName);
}
}
/* -q PQG file or curve name */
if (certutil.options[opt_PQGFile].activated) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment