Fix for bug 292390 . Prevent crash in certutil with -P option and dbprefix omitted.
git-svn-id: svn://10.0.0.236/trunk@172886 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
1f7b4650e9
commit
252f4e19f5
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user