Closed rhansen closed 11 months ago
Defining NETINET6
gives me a compile error because RES_USE_INET6
is undefined. As it turns out, that definition for the resolver is deprecated and has been removed since glibc 2.30. However, I can avoid the segfault by more carefully checking for NULL pointers in the milter callbacks.
This line is segfaulting due to null pointer dereference (
priv
is NULL):https://github.com/roehling/postsrsd/blob/1bf5c369a791f6bdfd28944597f9b7e870954133/src/milter.c#L173
This seems to happen when the SMTP client connects over IPv6. The following is logged just before the segfault occurs:
If I define
NETINET6
and rebuild then the segfault and the "unknown family" log message go away:(BTW, thank you very much for fixing #152!)