From fdeced40e4b03dc370557050721a2d952448cafa Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Sat, 26 Mar 2022 22:07:09 -0500 Subject: [PATCH] Bugfix: The f_socket_connect() needs to handle EINVAL errno. --- level_0/f_socket/c/socket.c | 1 + 1 file changed, 1 insertion(+) diff --git a/level_0/f_socket/c/socket.c b/level_0/f_socket/c/socket.c index 1860fbb..47305ca 100644 --- a/level_0/f_socket/c/socket.c +++ b/level_0/f_socket/c/socket.c @@ -126,6 +126,7 @@ extern "C" { if (errno == ECONNREFUSED) return F_status_set_error(F_connect_refuse); if (errno == EINPROGRESS) return F_status_set_error(F_progress); if (errno == EINTR) return F_status_set_error(F_interrupt); + if (errno == EINVAL) return F_status_set_error(F_parameter); if (errno == EISCONN) return F_status_set_error(F_connect); if (errno == ENETUNREACH) return F_status_set_error(F_network_reach_not); if (errno == ENOTSOCK) return F_status_set_error(F_socket_not); -- 1.8.3.1