소스 검색

[IPV6]: fix ipv6_saddr_score struct element

The scope element in the ipv6_saddr_score struct used in 
ipv6_dev_get_saddr() is an unsigned integer, but __ipv6_addr_src_scope() 
returns a signed integer (and can return -1).

Signed-off-by: Brian Haley <brian.haley@hp.com>
Acked-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Brian Haley 19 년 전
부모
커밋
0d27b42739
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      net/ipv6/addrconf.c

+ 1 - 1
net/ipv6/addrconf.c

@@ -822,7 +822,7 @@ struct ipv6_saddr_score {
 	int		addr_type;
 	int		addr_type;
 	unsigned int	attrs;
 	unsigned int	attrs;
 	int		matchlen;
 	int		matchlen;
-	unsigned int	scope;
+	int		scope;
 	unsigned int	rule;
 	unsigned int	rule;
 };
 };