Commit 156a01bc authored by Robert David Graham's avatar Robert David Graham Committed by GitHub
Browse files

Merge pull request #179 from sudeepta-bhuyan/master

Fix for segmentation fault #165
parents 65022372 bfe71705
Loading
Loading
Loading
Loading
+6 −1
Changes for src/rawsock.c: 6 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -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;