net/netlabel: copy and paste bug in netlbl_cfg_unlbl_map_add()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 23 Nov 2011 21:18:20 +0000 (21:18 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 25 Nov 2011 06:41:29 +0000 (01:41 -0500)
This was copy and pasted from the IPv4 code.  We're calling the
ip4 version of that function and map4 is NULL.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netlabel/netlabel_kapi.c

index 9c24de10a6579b78e452e47912c56e5d894e58ea..7b372a763c6092546b153c1522c87a68f770d8f7 100644 (file)
@@ -162,8 +162,8 @@ int netlbl_cfg_unlbl_map_add(const char *domain,
                        map6->list.addr.s6_addr32[3] &= mask6->s6_addr32[3];
                        ipv6_addr_copy(&map6->list.mask, mask6);
                        map6->list.valid = 1;
-                       ret_val = netlbl_af4list_add(&map4->list,
-                                                    &addrmap->list4);
+                       ret_val = netlbl_af6list_add(&map6->list,
+                                                    &addrmap->list6);
                        if (ret_val != 0)
                                goto cfg_unlbl_map_add_failure;
                        break;