소스 검색

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;