pothosware / SoapyNetSDR

SoapySDR Support Module for NetSDR protocol
https://github.com/pothosware/SoapyNetSDR/wiki
MIT License
3 stars 2 forks source link

Fix segfault caused by dereferencing NULL pointer in interfaceList() #12

Closed ryanvolz closed 1 year ago

ryanvolz commented 1 year ago

The getifaddrs function can return structures where the ifa_addr field is NULL (according to the man page). This adds a check for that before attempting anything else.

Fixes #6 for me.

ryanvolz commented 1 year ago

Wrong branch, one sec.