Module: kamailio
Branch: master
Commit: 42f7702430c312b2c9caea8f617af4e3719ef12f
URL:
https://github.com/kamailio/kamailio/commit/42f7702430c312b2c9caea8f617af4e…
Author: Paul Komkoff <i(a)stingr.net>
Committer: Paul Komkoff <i(a)stingr.net>
Date: 2021-01-05T14:55:11+04:00
core: fix unused argument in socket_info.c:get_flags
get_flags has an argument - family - which is supposed to be used
in netlink message, otherwise why would we need it?
---
Modified: src/core/socket_info.c
---
Diff:
https://github.com/kamailio/kamailio/commit/42f7702430c312b2c9caea8f617af4e…
Patch:
https://github.com/kamailio/kamailio/commit/42f7702430c312b2c9caea8f617af4e…
---
diff --git a/src/core/socket_info.c b/src/core/socket_info.c
index d34f3fb4cd..d55f506bcc 100644
--- a/src/core/socket_info.c
+++ b/src/core/socket_info.c
@@ -1085,7 +1085,7 @@ static int get_flags(int family){
int nll = 0;
int nl_sock = -1;
- fill_nl_req(req, RTM_GETLINK, AF_INET);
+ fill_nl_req(req, RTM_GETLINK, family);
if((nl_sock = nl_bound_sock()) < 0) return -1;