ssl: remove impossible signature algorithm null check

Signed-off-by: Old-Ding <35417409+Old-Ding@users.noreply.github.com>
(cherry picked from commit 501140ef18ff845ff8bbc434d6a5fa6cd8c9bc49)
This commit is contained in:
Old-Ding 2026-06-29 09:23:33 +08:00
parent 52beeef988
commit 14323602db

View File

@ -2451,9 +2451,6 @@ static inline int mbedtls_ssl_sig_alg_is_received(const mbedtls_ssl_context *ssl
uint16_t own_sig_alg)
{
const uint16_t *sig_alg = ssl->handshake->received_sig_algs;
if (sig_alg == NULL) {
return 0;
}
for (; *sig_alg != MBEDTLS_TLS_SIG_NONE; sig_alg++) {
if (*sig_alg == own_sig_alg) {