[XFRM/RTNETLINK]: Decrement qlen properly in {xfrm_,rt}netlink_rcv().
[linux-2.6.git] / net / core / rtnetlink.c
index 75b6d33b52924787089a3dcc9971ddecb8185113..00caf4b318b20831c8fad5226c7c3cd358b4995b 100644 (file)
@@ -632,8 +632,10 @@ static void rtnetlink_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);