dotpcap / sharppcap

Official repository - Fully managed, cross platform (Windows, Mac, Linux) .NET library for capturing packets
1.28k stars 267 forks source link

add check on invalid handle after pcap_create #414

Closed sensokame closed 1 year ago

sensokame commented 1 year ago

added a check to see if the handle is invalid or not after pcap_create and before the configuration (otherwise a memory access violation can be caused if the adapter was removed or disabled)

sensokame commented 1 year ago

@kayoub5 can you check and merge this branch?