Skip to content

Commit 42ca020

Browse files
Dan Carpenterdavem330
authored andcommitted
net/netlabel: copy and paste bug in netlbl_cfg_unlbl_map_add()
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>
1 parent ac8a481 commit 42ca020

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎net/netlabel/netlabel_kapi.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,8 @@ int netlbl_cfg_unlbl_map_add(const char *domain,
162162
map6->list.addr.s6_addr32[3] &= mask6->s6_addr32[3];
163163
ipv6_addr_copy(&map6->list.mask, mask6);
164164
map6->list.valid = 1;
165-
ret_val = netlbl_af4list_add(&map4->list,
166-
&addrmap->list4);
165+
ret_val = netlbl_af6list_add(&map6->list,
166+
&addrmap->list6);
167167
if (ret_val != 0)
168168
goto cfg_unlbl_map_add_failure;
169169
break;

0 commit comments

Comments
 (0)