Use correct errno when reporting errors from gethostbyname2_r
Use correct errno when reporting errors from gethostbyname2_r

asp24/resource-agents,stevenraspudic/resource-agents,asp24/resource-agents,stevenraspudic/resource-agents,stevenraspudic/resource-agents,asp24/resource-agents