[sr-dev] git:master:42f77024: core: fix unused argument in socket_info.c:get_flags

Paul Komkoff i at stingr.net
Tue Jan 5 16:30:17 CET 2021


Module: kamailio
Branch: master
Commit: 42f7702430c312b2c9caea8f617af4e3719ef12f
URL: https://github.com/kamailio/kamailio/commit/42f7702430c312b2c9caea8f617af4e3719ef12f

Author: Paul Komkoff <i at stingr.net>
Committer: Paul Komkoff <i at 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/42f7702430c312b2c9caea8f617af4e3719ef12f.diff
Patch: https://github.com/kamailio/kamailio/commit/42f7702430c312b2c9caea8f617af4e3719ef12f.patch

---

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;
 




More information about the sr-dev mailing list