Skip to content

Commit

Permalink
Merge pull request robertdavidgraham#179 from sudeepta-bhuyan/master
Browse files Browse the repository at this point in the history
Fix for segmentation fault robertdavidgraham#165
  • Loading branch information
robertdavidgraham authored Jun 8, 2017
2 parents 6502237 + bfe7170 commit 156a01b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/rawsock.c
Original file line number Diff line number Diff line change
Expand Up @@ -654,7 +654,12 @@ rawsock_init_adapter(const char *adapter_name,
* Since a lot of things can go wrong, we do a lot of extra
* logging here.
*----------------------------------------------------------------*/
if (is_pfring || is_pfring_dna(adapter_name)) {
if(is_pfring && !is_pfring_dna(adapter_name)){ /*First ensure pfring dna adapter is available*/
fprintf(stderr,"No pfring adapter available. Please install pfring or run masscan without the --pfring option.\n");
return 0;
}

if (is_pfring_dna(adapter_name)) {
int err;
unsigned version;

Expand Down

0 comments on commit 156a01b

Please sign in to comment.