]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[IPV6]: fix ipv6_saddr_score struct element
authorBrian Haley <brian.haley@hp.com>
Sun, 12 Mar 2006 02:50:14 +0000 (18:50 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 12 Mar 2006 02:50:14 +0000 (18:50 -0800)
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>
net/ipv6/addrconf.c

index b7d8822c1be49cbcd73ca303d7d253e93cdec406..19727d9419625427cedeb7c674c2974bc60821c6 100644 (file)
@@ -822,7 +822,7 @@ struct ipv6_saddr_score {
        int             addr_type;
        unsigned int    attrs;
        int             matchlen;
-       unsigned int    scope;
+       int             scope;
        unsigned int    rule;
 };