Module: kamailio
Branch: master
Commit: 8bc64a9e6820243336387d9cd9acf81f24d89993
URL:
https://github.com/kamailio/kamailio/commit/8bc64a9e6820243336387d9cd9acf81…
Author: Xenofon Karamanos <22965395+xkaraman(a)users.noreply.github.com>
Committer: Xenofon Karamanos <22965395+xkaraman(a)users.noreply.github.com>
Date: 2024-04-11T14:11:03+03:00
corex: Fix unknown af in list_sockets
---
Modified: src/modules/corex/corex_rpc.c
---
Diff:
https://github.com/kamailio/kamailio/commit/8bc64a9e6820243336387d9cd9acf81…
Patch:
https://github.com/kamailio/kamailio/commit/8bc64a9e6820243336387d9cd9acf81…
---
diff --git a/src/modules/corex/corex_rpc.c b/src/modules/corex/corex_rpc.c
index fa553fbf911..90f2e124125 100644
--- a/src/modules/corex/corex_rpc.c
+++ b/src/modules/corex/corex_rpc.c
@@ -61,8 +61,8 @@ static void corex_rpc_list_sockets(rpc_t *rpc, void *ctx)
return;
}
- if(rpc->struct_add(th, "sss{", "af", get_af_name(proto),
"proto",
- get_valid_proto_name(proto), "name", si->name.s,
+ if(rpc->struct_add(th, "sss{", "af",
get_af_name(si->address.af),
+ "proto", get_valid_proto_name(proto), "name", si->name.s,
"addrlist", &ih)
< 0) {
rpc->fault(ctx, 500, "Internal error address list structure");