Skip to content
Browse files

Merge branch 'master' of github.com:gamelinux/passivedns

  • Loading branch information...
2 parents 49a280f + 5bcbfc9 commit 27145f469241feb8402d215bb72b40e9c341712f @gamelinux committed Jul 7, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/passivedns.c
View
5 src/passivedns.c
@@ -1142,6 +1142,11 @@ int main(int argc, char *argv[])
}
+ if (config.handle == NULL) {
+ game_over();
+ return (1);
+ }
+
/** segfaults on empty pcap! */
if ((pcap_compile(config.handle, &config.cfilter, config.bpff, 1, config.net_mask)) == -1) {
olog("[*] Error pcap_compile user_filter: %s\n", pcap_geterr(config.handle));

0 comments on commit 27145f4

Please sign in to comment.
Something went wrong with that request. Please try again.