Skip to content

Commit

Permalink
Merge pull request #3158 from purecloudlabs/hotfix/upstream/proto-hep…
Browse files Browse the repository at this point in the history
…-tls-connection-reuse

proto_hep: Fix TLS connection reuse
  • Loading branch information
bogdan-iancu committed Oct 11, 2023
2 parents a1b2c3c + 42ba430 commit 7673c2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/proto_hep/proto_hep.c
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ static int hep_tcp_or_tls_send(struct socket_info* send_sock,
if (to) {
su2ip_addr(&ip, to);
port=su_getport(to);
n = tcp_conn_get(id, &ip, port, PROTO_HEP_TCP, NULL, &c, &fd, send_sock);
n = tcp_conn_get(id, &ip, port, is_tls ? PROTO_HEP_TLS : PROTO_HEP_TCP, NULL, &c, &fd, send_sock);
} else if (id) {
n = tcp_conn_get(id, 0, 0, PROTO_NONE, NULL, &c, &fd, NULL);
} else {
Expand Down

0 comments on commit 7673c2e

Please sign in to comment.