isc__strerror was being used incorrectly. Return value is the result and not a pointer to the error message