author | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Sat, 28 Feb 2009 09:29:08 +0000 (10:29 +0100) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Sat, 28 Feb 2009 09:29:08 +0000 (10:29 +0100) | ||
commit | b0608a28c996eae0dd407886154f6e8797b3545c | |
tree | d6f58e2dfbc0d9a44ef9663c49993716cc154f4f | tree | snapshot |
parent | da70cd0f24be40b2d76a9dd88ff8264b52c989bd | commit | diff |
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 ;)
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 | diff | blob | history |