Module: kamailio
Branch: master
Commit: 31377b160df563a222bec5a1bf92590635429240
URL:
https://github.com/kamailio/kamailio/commit/31377b160df563a222bec5a1bf92590…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2021-08-20T07:03:45+02:00
core: check message snd and rcv proto for COND_IF_DIFF_PROTO lumps
- besides comparing the protos of rcv and snd sockets
---
Modified: src/core/msg_translator.c
---
Diff:
https://github.com/kamailio/kamailio/commit/31377b160df563a222bec5a1bf92590…
Patch:
https://github.com/kamailio/kamailio/commit/31377b160df563a222bec5a1bf92590…
---
diff --git a/src/core/msg_translator.c b/src/core/msg_translator.c
index 0f82033c9f..9fd5635655 100644
--- a/src/core/msg_translator.c
+++ b/src/core/msg_translator.c
@@ -513,7 +513,8 @@ static inline int lump_check_opt( struct lump *l,
} else return 0;
case COND_IF_DIFF_PROTO:
get_ip_port_proto;
- if (proto!=snd_i->send_sock->proto) {
+ if ((proto!=snd_i->send_sock->proto)
+ || (msg->rcv.proto!=snd_i->proto)) {
LUMP_SET_COND_TRUE(l);
return 1;
} else return 0;