]> Kevux Git Server - fll/commitdiff
Bugfix: The f_socket_connect() needs to handle EINVAL errno.
authorKevin Day <thekevinday@gmail.com>
Sun, 27 Mar 2022 03:07:09 +0000 (22:07 -0500)
committerKevin Day <thekevinday@gmail.com>
Sun, 27 Mar 2022 03:07:09 +0000 (22:07 -0500)
level_0/f_socket/c/socket.c

index 1860fbbe4cff1a8c1ddc2dc96cdf9cca11c4c736..47305ca1f89a02a19782caaec9d05c93867ebac4 100644 (file)
@@ -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);