Skip to content

Commit

Permalink
fixup! fixup! Fixes a couple of memory leaks from missing checks of r…
Browse files Browse the repository at this point in the history
…eturn value from sk_OPENSSL_STRING_push()
  • Loading branch information
fwh-dc committed Dec 21, 2024
1 parent 38fed69 commit 8e8fe42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/cms.c
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,7 @@ int cms_main(int argc, char **argv)
if (skkeys == NULL
&& (skkeys = sk_OPENSSL_STRING_new_null()) == NULL)
goto end;
if (sk_OPENSSL_STRING_push(skkeys, keyfile))
if (!sk_OPENSSL_STRING_push(skkeys, keyfile))
goto end;
keyfile = NULL;
}
Expand Down

0 comments on commit 8e8fe42

Please sign in to comment.