Skip to content

Commit

Permalink
Merge branch 'master' of github.com:gamelinux/passivedns
Browse files Browse the repository at this point in the history
  • Loading branch information
gamelinux committed Jul 7, 2012
2 parents 49a280f + 5bcbfc9 commit 27145f4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/passivedns.c
Expand Up @@ -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));
Expand Down

0 comments on commit 27145f4

Please sign in to comment.