Skip to content

Commit

Permalink
tm: fix kemi t_relay_to_proto() variants for tls
Browse files Browse the repository at this point in the history
(cherry picked from commit 1f7e894)
  • Loading branch information
miconda committed May 23, 2022
1 parent ce68e76 commit 9b8f927
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/tm/tm.c
Expand Up @@ -2930,7 +2930,7 @@ static int ki_t_relay_to_proto(sip_msg_t *msg, str *sproto)
proto = PROTO_UDP;
} else if (strncasecmp(sproto->s, "TCP", 3) == 0) {
proto = PROTO_TCP;
} else if (strncasecmp(sproto->s, "TLS", 3)) {
} else if (strncasecmp(sproto->s, "TLS", 3) == 0) {
proto = PROTO_TLS;
} else {
LM_ERR("bad protocol specified <%s>\n", sproto->s);
Expand All @@ -2955,7 +2955,7 @@ static int ki_t_relay_to_proto_addr(sip_msg_t *msg, str *sproto, str *host, int
proto = PROTO_UDP;
} else if (strncasecmp(sproto->s, "TCP", 3) == 0) {
proto = PROTO_TCP;
} else if (strncasecmp(sproto->s, "TLS", 3)) {
} else if (strncasecmp(sproto->s, "TLS", 3) == 0) {
proto = PROTO_TLS;
} else {
LM_ERR("bad protocol specified <%s>\n", sproto->s);
Expand Down

0 comments on commit 9b8f927

Please sign in to comment.