diff options
| author | Hideaki Yoshifuji <yoshfuji@linux-ipv6.org> | 2004-02-02 17:14:04 -0800 |
|---|---|---|
| committer | David S. Miller <davem@nuts.davemloft.net> | 2004-02-02 17:14:04 -0800 |
| commit | ab28f97a0fcb5675eb4535de10fd6bb3196b8693 (patch) | |
| tree | 4f0ed24e55035e1ed74374ae8431f94fe6ac61a5 | |
| parent | 94b0db3e0857af1efb5106c33868e43273d5e27b (diff) | |
[IPV6]: Fix dst leak in error path of ndisc_send_redirect().
| -rw-r--r-- | net/ipv6/ndisc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/ipv6/ndisc.c b/net/ipv6/ndisc.c index 125591afc596..79b1dbf6692c 100644 --- a/net/ipv6/ndisc.c +++ b/net/ipv6/ndisc.c @@ -1362,6 +1362,7 @@ void ndisc_send_redirect(struct sk_buff *skb, struct neighbour *neigh, 1, &err); if (buff == NULL) { ND_PRINTK1("ndisc_send_redirect: alloc_skb failed\n"); + dst_release(dst); return; } |
