Free data if sk_OPENSSL_STRING_push fails.#26227
Conversation
|
Please note that sk__push will return -1 when sk is NULL on versions earlier than 3.3.0. |
Should I modify the check to |
I'd suggest |
Done. |
Sashan
left a comment
There was a problem hiding this comment.
looks good to me. thanks.
|
This pull request is ready to merge |
|
Merged to the master and 3.4 branches. Does not apply cleanly to older branches but not important enough for backporting IMO. |
Fixes openssl#26203 Reviewed-by: Paul Dale <ppzgs1@gmail.com> Reviewed-by: Saša Nedvědický <sashan@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from openssl#26227)
Fixes #26203
Checked additional calls to sk_OPENSSL_STRING_push() and found another case. A reviewer could do the same task and verify that I didn't miss another case.