зеркало из https://github.com/mozilla/gecko-dev.git
Fix for 292390. NSS tools with missing command-line operands cause crash. r=nelson
This commit is contained in:
Родитель
7e8884e00e
Коммит
48b2d654bd
|
@ -3078,7 +3078,9 @@ SECU_ParseCommandLine(int argc, char **argv, char *progName, secuCommand *cmd)
|
||||||
cmd->options[i].activated = PR_TRUE;
|
cmd->options[i].activated = PR_TRUE;
|
||||||
if (optstate->value) {
|
if (optstate->value) {
|
||||||
cmd->options[i].arg = (char *)optstate->value;
|
cmd->options[i].arg = (char *)optstate->value;
|
||||||
}
|
} else if (cmd->options[i].needsArg) {
|
||||||
|
return SECFailure;
|
||||||
|
}
|
||||||
found = PR_TRUE;
|
found = PR_TRUE;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче