[XFRM/RTNETLINK]: Decrement qlen properly in {xfrm_,rt}netlink_rcv().
[linux-2.6.git] / net / xfrm / xfrm_user.c
index e8740a4a1d7845704cabda0f0f6f4891bf683761..5ddda2c98af9c8258562f926735fe16fa83025c2 100644 (file)
@@ -1024,8 +1024,10 @@ static void xfrm_netlink_rcv(struct sock *sk, int len)
                                if (skb->len)
                                        skb_queue_head(&sk->sk_receive_queue,
                                                       skb);
-                               else
+                               else {
                                        kfree_skb(skb);
+                                       qlen--;
+                               }
                                break;
                        }
                        kfree_skb(skb);