[sr-dev] git:master:86e8bfde: rr: compare sockname parameter name with the attribute name

Daniel-Constantin Mierla miconda at gmail.com
Fri Feb 12 15:28:43 CET 2021


Module: kamailio
Branch: master
Commit: 86e8bfdee87558fcee3e5b821b506b934c6b6790
URL: https://github.com/kamailio/kamailio/commit/86e8bfdee87558fcee3e5b821b506b934c6b6790

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2021-02-12T15:27:35+01:00

rr: compare sockname parameter name with the attribute name

---

Modified: src/modules/rr/loose.c

---

Diff:  https://github.com/kamailio/kamailio/commit/86e8bfdee87558fcee3e5b821b506b934c6b6790.diff
Patch: https://github.com/kamailio/kamailio/commit/86e8bfdee87558fcee3e5b821b506b934c6b6790.patch

---

diff --git a/src/modules/rr/loose.c b/src/modules/rr/loose.c
index d700d6ac73..cfccfffa50 100644
--- a/src/modules/rr/loose.c
+++ b/src/modules/rr/loose.c
@@ -761,9 +761,9 @@ static inline void rr_do_force_send_socket(sip_msg_t *_m, sip_uri_t *puri,
 			return;
 		}
 		for (pit = plist; pit; pit=pit->next) {
-			if (pit->name.len==SOCKNAME_PARAM_LEN
-					&& strncasecmp(pit->name.s, SOCKNAME_PARAM,
-							SOCKNAME_PARAM_LEN)==0) {
+			if (pit->name.len==SOCKNAME_ATTR_LEN
+					&& strncasecmp(pit->name.s, SOCKNAME_ATTR,
+							SOCKNAME_ATTR_LEN)==0) {
 				if(pit->body.len>0) {
 					si = ksr_get_socket_by_name(&pit->body);
 					if(si != NULL) {




More information about the sr-dev mailing list