OpenSSL: Reject empty cipher list in tls_connection_set_cipher_list()
Previously, this invalid call would have resulted in printing out a string from uninitialized memory Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
3af37ece19
commit
063d28ec83
1 changed files with 4 additions and 0 deletions
|
@ -4437,6 +4437,10 @@ int tls_connection_set_cipher_list(void *tls_ctx, struct tls_connection *conn,
|
||||||
|
|
||||||
c++;
|
c++;
|
||||||
}
|
}
|
||||||
|
if (!buf[0]) {
|
||||||
|
wpa_printf(MSG_DEBUG, "OpenSSL: No ciphers listed");
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
wpa_printf(MSG_DEBUG, "OpenSSL: cipher suites: %s", buf + 1);
|
wpa_printf(MSG_DEBUG, "OpenSSL: cipher suites: %s", buf + 1);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue