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
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -2482,8 +2482,13 @@ secuCommandFlag certutil_options[] =
    }

    /*  -P certdb name prefix */
    if (certutil.options[opt_DBPrefix].activated)
    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) {