Skip to content

Commit

Permalink
Merge pull request #433 from philljj/fix_lms_example
Browse files Browse the repository at this point in the history
Check privSz after GetPrivLen.
  • Loading branch information
anhu authored Apr 25, 2024
2 parents 7eff6cb + c47e7a8 commit d9fcb0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pq/stateful_hash_sig/lms_example.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d9fcb0e

Please sign in to comment.