Code

dns plugin: Don't pass a NULL pointer to `pcap_open_live'.
authorFlorian Forster <octo@leeloo.lan.home.verplant.org>
Sat, 28 Feb 2009 09:29:08 +0000 (10:29 +0100)
committerFlorian Forster <octo@leeloo.lan.home.verplant.org>
Sat, 28 Feb 2009 09:29:08 +0000 (10:29 +0100)
commitb0608a28c996eae0dd407886154f6e8797b3545c
treed6f58e2dfbc0d9a44ef9663c49993716cc154f4f
parentda70cd0f24be40b2d76a9dd88ff8264b52c989bd
dns plugin: Don't pass a NULL pointer to `pcap_open_live'.

Although the documentation states clearly, that passing a NULL pointer
as device is okay and handled like "any", doing so will crash the daemon
on some systems, most notably *BSDs but Linux users have reported this
behavior, too.

This patch passes "any" when the pointer it NULL, which reportedly
resulted in a different behavior, but still crashing the daemon. We'll
keep trying ;)
src/dns.c