Module: kamailio
Branch: master
Commit: f35cf8904119dcf582ea2451648de5fef095466b
URL:
https://github.com/kamailio/kamailio/commit/f35cf8904119dcf582ea2451648de5f…
Author: Elena-Ramona Modroiu <ramona(a)asipto.com>
Committer: Elena-Ramona Modroiu <ramona(a)asipto.com>
Date: 2024-03-23T09:51:47+01:00
core: resolve/create_srv_pref_list() - insert at correct position in list
---
Modified: src/core/resolve.c
---
Diff:
https://github.com/kamailio/kamailio/commit/f35cf8904119dcf582ea2451648de5f…
Patch:
https://github.com/kamailio/kamailio/commit/f35cf8904119dcf582ea2451648de5f…
---
diff --git a/src/core/resolve.c b/src/core/resolve.c
index b6ee8592697..6d581f4915f 100644
--- a/src/core/resolve.c
+++ b/src/core/resolve.c
@@ -1526,8 +1526,8 @@ size_t create_srv_pref_list(char *proto, struct dns_srv_proto
*list)
if(naptr_proto_supported(i) == 0) {
continue;
} else {
- list[i - 1].proto_pref = tmp.proto_pref;
- list[i - 1].proto = i;
+ list[list_len].proto_pref = tmp.proto_pref;
+ list[list_len].proto = i;
list_len++;
}
};