netsniff-ng: Check return value of poll()
authorTobias Klauser <tklauser@distanz.ch>
Mon, 12 Aug 2013 20:45:47 +0000 (22:45 +0200)
committerTobias Klauser <tklauser@distanz.ch>
Mon, 12 Aug 2013 20:45:47 +0000 (22:45 +0200)
commitbce6f96faa3fbb50538712436ea2f4771d6491f9
tree1e94f5b24e86a2e82a569250801ec1769d401613
parentb5b2d939664183d9d8f3906366faf01655886dfc
netsniff-ng: Check return value of poll()

The return value of two calls to poll() are never check, despite the
(unlikely) possibility of them returning an error, fix it by checking
the return value and panic()ing on error.

This issue was discovered using the Coverity scanner.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
netsniff-ng.c