patch-2.4.21 linux-2.4.21/net/ipv4/netfilter/ip_queue.c
Next file: linux-2.4.21/net/ipv4/netfilter/ip_tables.c
Previous file: linux-2.4.21/net/ipv4/netfilter/ip_nat_tftp.c
Back to the patch index
Back to the overall index
- Lines: 21
- Date:
2003-06-13 07:51:39.000000000 -0700
- Orig file:
linux-2.4.20/net/ipv4/netfilter/ip_queue.c
- Orig date:
2002-11-28 15:53:15.000000000 -0800
diff -urN linux-2.4.20/net/ipv4/netfilter/ip_queue.c linux-2.4.21/net/ipv4/netfilter/ip_queue.c
@@ -300,8 +300,9 @@
write_lock_bh(&queue_lock);
if (!peer_pid)
- goto err_out_unlock;
+ goto err_out_free_nskb;
+ /* netlink_unicast will either free the nskb or attach it to a socket */
status = netlink_unicast(ipqnl, nskb, peer_pid, MSG_DONTWAIT);
if (status < 0)
goto err_out_unlock;
@@ -312,6 +313,9 @@
write_unlock_bh(&queue_lock);
return status;
+
+err_out_free_nskb:
+ kfree_skb(nskb);
err_out_unlock:
write_unlock_bh(&queue_lock);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)