addr_init calls inet_pton, which returns 0 when the supplied does
string does not represent a valid network address in the specified
address family.
We were checking for -1 instead of 0, missing this error case.
Due to that error, the sensor accepts any value in the socket output
configuration, even invalid ip address, and blocks instead of reporting
an error. git reset --soft HEAD~1
addr_init
callsinet_pton
, which returns 0 when the supplied does string does not represent a valid network address in the specified address family. We were checking for -1 instead of 0, missing this error case. Due to that error, the sensor accepts any value in the socket output configuration, even invalid ip address, and blocks instead of reporting an error. git reset --soft HEAD~1