Check the return value. If return_value.code is not UV_OK, ip probably contains garbage.