ソースを参照

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 4 年 前
コミット
42f7702430
1 ファイル変更1 行追加1 行削除
  1. 1 1
      src/core/socket_info.c

+ 1 - 1
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;