Skip to content

Commit

Permalink
cms_common: Fixed Segmentation fault
Browse files Browse the repository at this point in the history
When running efikeygen, the binary crashes with a segfault due
to dereferencing a **ptr instead of a *ptr.

Signed-off-by: Nicolas Frayer <nfrayer@redhat.com>
  • Loading branch information
nfrayer authored and frozencemetery committed Feb 20, 2023
1 parent 616ec5f commit 227435a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cms_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -957,7 +957,7 @@ find_certificate_by_issuer_and_sn(cms_context *cms,
if (!ias)
cnreterr(-1, cms, "invalid issuer and serial number");

return find_certificate_by_callback(cms, match_issuer_and_serial, &ias, cert);
return find_certificate_by_callback(cms, match_issuer_and_serial, ias, cert);
}

int
Expand Down

0 comments on commit 227435a

Please # to comment.