|
@@ -22,7 +22,7 @@ static int ebt_target_snat(struct sk_buff *skb, unsigned int hooknr,
|
|
|
{
|
|
{
|
|
|
const struct ebt_nat_info *info = data;
|
|
const struct ebt_nat_info *info = data;
|
|
|
|
|
|
|
|
- if (skb_make_writable(skb, 0))
|
|
|
|
|
|
|
+ if (!skb_make_writable(skb, 0))
|
|
|
return NF_DROP;
|
|
return NF_DROP;
|
|
|
|
|
|
|
|
memcpy(eth_hdr(skb)->h_source, info->mac, ETH_ALEN);
|
|
memcpy(eth_hdr(skb)->h_source, info->mac, ETH_ALEN);
|