# 2.4: \[NETLINK\] Fix bogus mc\_list deletion

- From: Herbert Xu \<herbert@gondor.apana.org.au\>
- Date: 2005-03-29 11:23:44 
- List: netdev
- Page: https://ratatoskr.run/netdev/2005/03/10751156
- Thread: https://ratatoskr.run/netdev/2005/03/10751156/t.md

```text
On Tue, Mar 29, 2005 at 08:11:45PM +0900, Tim Burress wrote:
> 
> So not only is the socket dead, it's not even a Netlink socket. 
> Apparently a socket originally allocated to Netlink was not unlinked 
> from the mc_list after it was freed, but offhand I can't see how that 
> could happen.

Thanks for tracking this issue down.

Looks like I made a nasty typo in the 2.4 backport.  When entries
are unlinked from mc_list, we link the list up with the regular
hash bucket list by using next instead of bind_next!

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

Marcelo, you'll want this to be in the next rc.

Cheers,
-- 
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} [ref]
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
```

## Attachments

- [p](https://ratatoskr.run/netdev/2005/03/10751156/attachment/0) (text/plain, 455 bytes)
