Module: kamailio
Branch: master
Commit: 10519d199f6cac116399f4473bd82f2b08de72ba
URL:
https://github.com/kamailio/kamailio/commit/10519d199f6cac116399f4473bd82f2…
Author: Pe����ter Baraba����s <peter.barabas(a)securesoft.hu>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2023-12-08T09:42:08+01:00
uac: fix socket length settings
- set _uac_req.s_sock.len value to 0 in pv_set_uac_req() method in case of "all"
case
- change setting of _uac_req.s_apasswd.len to _uac_req.s_sock.len in pv_set_uac_req()
method in case of "sock" case
---
Modified: src/modules/uac/uac_send.c
---
Diff:
https://github.com/kamailio/kamailio/commit/10519d199f6cac116399f4473bd82f2…
Patch:
https://github.com/kamailio/kamailio/commit/10519d199f6cac116399f4473bd82f2…
---
diff --git a/src/modules/uac/uac_send.c b/src/modules/uac/uac_send.c
index c098feacff2..b2cdaad9066 100644
--- a/src/modules/uac/uac_send.c
+++ b/src/modules/uac/uac_send.c
@@ -210,6 +210,7 @@ int pv_set_uac_req(
_uac_req.s_body.len = 0;
_uac_req.s_method.len = 0;
_uac_req.s_callid.len = 0;
+ _uac_req.s_sock.len = 0;
_uac_req.evroute = 0;
_uac_req.evtype = 0;
_uac_req.evcode = 0;
@@ -399,7 +400,7 @@ int pv_set_uac_req(
break;
case 12:
if(tval == NULL) {
- _uac_req.s_apasswd.len = 0;
+ _uac_req.s_sock.len = 0;
return 0;
}
if(!(tval->flags & PV_VAL_STR)) {