[libesl] Coverity 1024721 Unchecked return value from library

This commit is contained in:
Andrey Volk 2025-01-31 18:04:09 +03:00
parent e48b83fbbf
commit f5509a59e8

View File

@ -1066,7 +1066,10 @@ ESL_DECLARE(esl_status_t) esl_connect_timeout(esl_handle_t *handle, const char *
}
}
#else
fcntl(handle->sock, F_SETFL, fd_flags);
if (fcntl(handle->sock, F_SETFL, fd_flags)) {
snprintf(handle->err, sizeof(handle->err), "Socket Connection Error");
goto fail;
}
#endif
rval = 0;
}