diff options
author | Darren Tucker <dtucker@dtucker.net> | 2024-02-15 19:33:05 +1100 |
---|---|---|
committer | Rosen Penev <rosenp@gmail.com> | 2024-02-24 12:14:18 -0800 |
commit | 69b24ecf6f92feed56ae91cfcf5b56240d90104c (patch) | |
tree | 93f3bfedef0a8c6d5291228a386cb6aa1aefb962 /net/snort3 | |
parent | 9e7739057f0e1621675a589bc7c2a7a080c97a20 (diff) |
conserver: free correct addrinfo to prevent crash.
When looping through addrinfo lists in AddrsMatch, keep a copy of the
original addrinfo pointers to free instead of ending up at the terminating
NULLs and trying to free those.
OpenWRT uses musl in which freeaddrinfo(NULL) is not safe (which is
fine, it's not required by the spec) so this fixes a segfault.
Signed-off-by: Darren Tucker <dtucker@dtucker.net>
Diffstat (limited to 'net/snort3')
0 files changed, 0 insertions, 0 deletions