Module: kamailio
Branch: master
Commit: cf72416567d915c1024471e917b933d057452ed9
URL:
https://github.com/kamailio/kamailio/commit/cf72416567d915c1024471e917b933d…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-11-26T10:36:07+01:00
dispatcher: ds_oc_set_attrs() return -2 when no oc attributes are updated
---
Modified: src/modules/dispatcher/dispatch.c
---
Diff:
https://github.com/kamailio/kamailio/commit/cf72416567d915c1024471e917b933d…
Patch:
https://github.com/kamailio/kamailio/commit/cf72416567d915c1024471e917b933d…
---
diff --git a/src/modules/dispatcher/dispatch.c b/src/modules/dispatcher/dispatch.c
index 1c31ca3fc95..3d536b7c171 100644
--- a/src/modules/dispatcher/dispatch.c
+++ b/src/modules/dispatcher/dispatch.c
@@ -483,6 +483,7 @@ int ds_oc_set_attrs(
tdiff.tv_sec = (((itval > 0) ? itval : 500) * 1000) / 1000000;
tdiff.tv_usec = (((itval > 0) ? itval : 500) * 1000) % 1000000;
+ ret = -2;
for(i = 0; i < idx->nr; i++) {
if(idx->dlist[i].uri.len == duri->len
&& strncasecmp(idx->dlist[i].uri.s, duri->s, duri->len) == 0) {