[libesl] Coverity 1024721 Unchecked return value from library

This commit is contained in:
Andrey Volk 2025-01-31 18:04:09 +03:00
parent 15d4b633e3
commit e184897c51

View File

@ -1066,7 +1066,10 @@ ESL_DECLARE(esl_status_t) esl_connect_timeout(esl_handle_t *handle, const char *
} }
} }
#else #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 #endif
rval = 0; rval = 0;
} }