Skip to content

Commit e184897

Browse files
committed
[libesl] Coverity 1024721 Unchecked return value from library
1 parent 15d4b63 commit e184897

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

libs/esl/src/esl.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1066,7 +1066,10 @@ ESL_DECLARE(esl_status_t) esl_connect_timeout(esl_handle_t *handle, const char *
10661066
}
10671067
}
10681068
#else
1069-
fcntl(handle->sock, F_SETFL, fd_flags);
1069+
if (fcntl(handle->sock, F_SETFL, fd_flags)) {
1070+
snprintf(handle->err, sizeof(handle->err), "Socket Connection Error");
1071+
goto fail;
1072+
}
10701073
#endif
10711074
rval = 0;
10721075
}

0 commit comments

Comments
 (0)