Module: kamailio
Branch: 5.5
Commit: de84b32eb42e19f8626947da1c567eea2d0869fb
URL:
https://github.com/kamailio/kamailio/commit/de84b32eb42e19f8626947da1c567ee…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2021-08-20T10:00:38+02:00
core: check message snd and rcv proto for COND_IF_DIFF_PROTO lumps
- besides comparing the protos of rcv and snd sockets
(cherry picked from commit 31377b160df563a222bec5a1bf92590635429240)
---
Modified: src/core/msg_translator.c
---
Diff:
https://github.com/kamailio/kamailio/commit/de84b32eb42e19f8626947da1c567ee…
Patch:
https://github.com/kamailio/kamailio/commit/de84b32eb42e19f8626947da1c567ee…
---
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;