Open jschorb opened 6 years ago
I don't have access to Solaris. Any chance you can try to figure out why getaddrinfo is failing for you?
Yes I has figured out the problem. It is the chroot() function. I think the shared object is not completely loaded in the program memory.
You could try compiling it as a static binary. I haven't really been able to do this on Linux, but it might work on Solaris.
No I think there is no way to build a static binary. The standard libraries will be shipped only in shared format.
OS: Solaris 11.3 OSSEC Version: ossec-hids-3.0.0
OS_IsValidIP returns alwas return 0 for a invalid ip address. The Problem is getaddrinfo, getaddrinfo return 1 for an invalid ip address. But when I test with the ip_test programm the function works correctly. Is there a solution for this problem?
Regards Jürgen