mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-09 00:27:08 +02:00
MINOR: ssl: switch to conn_get_dst() to retrieve the destination address
This replaces conn_get_to_addr() and the subsequent check.
This commit is contained in:
parent
3cc01d84b3
commit
f5bdb64d35
@ -2083,8 +2083,7 @@ ssl_sock_generate_certificate_from_conn(struct bind_conf *bind_conf, SSL *ssl)
|
||||
unsigned int key;
|
||||
struct connection *conn = SSL_get_ex_data(ssl, ssl_app_data_index);
|
||||
|
||||
conn_get_to_addr(conn);
|
||||
if (conn->flags & CO_FL_ADDR_TO_SET) {
|
||||
if (conn_get_dst(conn)) {
|
||||
key = ssl_sock_generated_cert_key(&conn->addr.to, get_addr_len(&conn->addr.to));
|
||||
if (ssl_sock_assign_generated_cert(key, bind_conf, ssl))
|
||||
return 1;
|
||||
|
Loading…
Reference in New Issue
Block a user