Merge pull request #433 from philljj/fix_lms_example

Check privSz after GetPrivLen.
pull/434/head
Anthony Hu 2024-04-25 11:10:30 -04:00 committed by GitHub
commit d9fcb0e62c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -288,7 +288,7 @@ do_lms_example(int levels,
}
ret = wc_LmsKey_GetPrivLen(&signingKey, &privSz);
if (ret || pubSz == 0) {
if (ret || privSz == 0) {
fprintf(stderr, "error: wc_LmsKey_GetPrivLen returned: %d, %d\n",
ret, privSz);
goto exit_lms_example;