summaryrefslogtreecommitdiff
path: root/net/ipv6/addrconf.c
diff options
context:
space:
mode:
authorBrian Haley <brian.haley@hp.com>2006-03-11 18:50:14 -0800
committerDavid S. Miller <davem@davemloft.net>2006-03-11 18:50:14 -0800
commit0d27b42739ee432a66104793e51a23807b372928 (patch)
treed23986eff26122d06f6493029428a8748ff90040 /net/ipv6/addrconf.c
parent0ade309be739eceedc4812798da09d698a59867d (diff)
downloadlwn-0d27b42739ee432a66104793e51a23807b372928.tar.gz
lwn-0d27b42739ee432a66104793e51a23807b372928.zip
[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>
Diffstat (limited to 'net/ipv6/addrconf.c')
-rw-r--r--net/ipv6/addrconf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c
index b7d8822c1be4..19727d941962 100644
--- a/net/ipv6/addrconf.c
+++ b/net/ipv6/addrconf.c
@@ -822,7 +822,7 @@ struct ipv6_saddr_score {
int addr_type;
unsigned int attrs;
int matchlen;
- unsigned int scope;
+ int scope;
unsigned int rule;
};