mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-07-30 16:26:33 +08:00
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:
parent
52beeef988
commit
14323602db
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user