mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-06-19 19:33:38 +08:00
Fix bugs
This commit is contained in:
@@ -81,6 +81,10 @@ int hsskeygen_main(int argc, char **argv)
|
||||
|
||||
tok = strtok(lms_types_str, ":");
|
||||
while (tok) {
|
||||
if (levels >= sizeof(lms_types_val)/sizeof(lms_types_val[0])) {
|
||||
fprintf(stderr, "%s: too many lms types\n", prog);
|
||||
goto end;
|
||||
}
|
||||
if (!(lms_types_val[levels] = lms_type_from_name(tok))) {
|
||||
fprintf(stderr, "%s: invalid lms_type `%s`\n", prog, tok);
|
||||
goto end;
|
||||
|
||||
Reference in New Issue
Block a user