]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: ssl-sample: Fix sample_conv_sha2() by checking EVP_Digest* failures
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 6 Mar 2026 07:59:01 +0000 (08:59 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 6 Mar 2026 08:07:16 +0000 (09:07 +0100)
commitbfe5a2c3d7e89f2beac14d5f8f5fca54c6642c11
treeb007ec87dbfc0bfbdecf3b9644c1c21a9feee524
parentb48c9a14656272b7167752286ca6c21dd9a918c5
BUG/MINOR: ssl-sample: Fix sample_conv_sha2() by checking EVP_Digest* failures

In sample_conv_sha2(), calls to EVP_Digest* can fail. So we must check
return value of each call and report a error on failure and release the
digest context.

This patch should fix the issue #3274. It should be backported as far as
2.6.
src/ssl_sample.c