Skip to content

Commit

Permalink
pcap_init may return NULL
Browse files Browse the repository at this point in the history
  • Loading branch information
alandekok committed Apr 29, 2014
1 parent a0188f3 commit 4d2b02f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/radsniff.c
Expand Up @@ -1995,6 +1995,10 @@ int main(int argc, char *argv[])

case 'w':
out = fr_pcap_init(conf, optarg, PCAP_FILE_OUT);
if (!out) {
ERROR("Failed creating output %s", optarg);
exit(EXIT_FAILURE);
}
conf->to_file = true;
break;

Expand Down

0 comments on commit 4d2b02f

Please sign in to comment.