mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-23 07:08:06 -04:00
MINOR: ssl-sock: use conn->dst instead of &conn->addr.to
This part can be definitive as the check was already in place.
This commit is contained in:
parent
226572f55f
commit
085a1513ad
1 changed files with 1 additions and 1 deletions
|
|
@ -2084,7 +2084,7 @@ ssl_sock_generate_certificate_from_conn(struct bind_conf *bind_conf, SSL *ssl)
|
|||
struct connection *conn = SSL_get_ex_data(ssl, ssl_app_data_index);
|
||||
|
||||
if (conn_get_dst(conn)) {
|
||||
key = ssl_sock_generated_cert_key(&conn->addr.to, get_addr_len(&conn->addr.to));
|
||||
key = ssl_sock_generated_cert_key(conn->dst, get_addr_len(conn->dst));
|
||||
if (ssl_sock_assign_generated_cert(key, bind_conf, ssl))
|
||||
return 1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue