Skip to content

Commit

Permalink
fixup! Fix error handling in send/recv threads
Browse files Browse the repository at this point in the history
  • Loading branch information
sfan5 committed Mar 16, 2024
1 parent 428f64c commit 671f017
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/rawsock-pcap.c
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,8 @@ int rawsock_loop(rawsock_callback func)
int r = pcap_loop(handle, -1, callback_fwd, (u_char*) func);
if(r == PCAP_ERROR_BREAK)
r = 0;
if(r != 0) {
if(r != 0)
pcap_perror(handle, "pcap_loop");
}
return r;
}

Expand Down

0 comments on commit 671f017

Please sign in to comment.