chiark / gitweb /
netlink: Avoid crash with clientless netlink
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 5 Jan 2014 15:32:05 +0000 (15:32 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 24 Apr 2014 00:32:53 +0000 (01:32 +0100)
commit55bc97e626e0f31e04b190528b25c6e026942610
treec21cf84a14d4f65f458fcd4ac883eefcd105310f
parent7b6abafa4e46e77072dbd89f4ee4090268d6da51
netlink: Avoid crash with clientless netlink

In some pathological configurations, it can happen that a packet is
received from the kernel by a netlink which has no clients (that is,
where netlink_inst_reg has not been called).

Don't crash when this happens; instead, print a log message including
the source and destination addresses.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
debian/changelog
netlink.c