Browse code

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?

Paul Komkoff authored on 04/01/2021 14:18:01
Showing 1 changed files
... ...
@@ -1085,7 +1085,7 @@ static int get_flags(int family){
1085 1085
 	int nll = 0;
1086 1086
     int nl_sock = -1;
1087 1087
 
1088
-	fill_nl_req(req, RTM_GETLINK, AF_INET);
1088
+	fill_nl_req(req, RTM_GETLINK, family);
1089 1089
 
1090 1090
 	if((nl_sock = nl_bound_sock()) < 0) return -1;
1091 1091