I've attached a patch fixing an error in the function res_init_ip(const char* localIp) found in the file "sipXtackLib/src/resparse/res_init.c". I haven't seen an error due to the existing code, but it's obviously wrong by inspection.
1. If the argument localIp is NULL, then the test "if (localIp || localIp[0] == 0)" will dereference it, leading to a crash. 2. If the argument localIp is non-NULL, then the test " if (localIp || localIp[0] == 0)" will always be true and will invoke the code to IGNORE localIp and use the default value instead. Stephen C. Steel
sipxtapi_dns_fix.patch
Description: Binary data
_______________________________________________ sipxtapi-dev mailing list [email protected] List Archive: http://list.sipfoundry.org/archive/sipxtapi-dev/
