Module: kamailio
Branch: 5.8
Commit: dbf9208f3a402844c9981fb7ed09493a1338dfdd
URL:
https://github.com/kamailio/kamailio/commit/dbf9208f3a402844c9981fb7ed09493…
Author: Elena-Ramona Modroiu <ramona(a)asipto.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-04-01T08:06:56+02:00
core: resolve/create_srv_pref_list() - insert at correct position in list
(cherry picked from commit f35cf8904119dcf582ea2451648de5fef095466b)
---
Modified: src/core/resolve.c
---
Diff:
https://github.com/kamailio/kamailio/commit/dbf9208f3a402844c9981fb7ed09493…
Patch:
https://github.com/kamailio/kamailio/commit/dbf9208f3a402844c9981fb7ed09493…
---
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++;
}
};