From: Kevin Day Date: Sun, 27 Mar 2022 03:07:09 +0000 (-0500) Subject: Bugfix: The f_socket_connect() needs to handle EINVAL errno. X-Git-Tag: 0.5.9~62 X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=fdeced40e4b03dc370557050721a2d952448cafa;p=fll Bugfix: The f_socket_connect() needs to handle EINVAL errno. --- 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);