Skip to content

Commit

Permalink
core: check message rcv and snd proto for diff realms lump conditions
Browse files Browse the repository at this point in the history
- in addition to receive socket and send socket protos, which may be the
same in cases of tcp/tls+ws/wss using same ports

(cherry picked from commit 871f811)
  • Loading branch information
miconda committed Aug 20, 2021
1 parent 6b1fb35 commit 52978a0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/msg_translator.c
Expand Up @@ -493,8 +493,9 @@ static inline int lump_check_opt( struct lump *l,
case COND_IF_DIFF_REALMS:
get_ip_port_proto;
/* faster tests first */
if ((port==snd_i->send_sock->port_no) &&
if ((port==snd_i->send_sock->port_no) &&
(proto==snd_i->send_sock->proto) &&
(msg->rcv.proto==snd_i->proto) &&
#ifdef USE_COMP
(msg->rcv.comp==snd_i->comp) &&
#endif
Expand Down

0 comments on commit 52978a0

Please sign in to comment.