Commit 0cf82744 authored by Sergey Lyubka's avatar Sergey Lyubka

Unbreak macos tests

    PUBLISHED_FROM=a9521579223cfbb68e2b7bcd221335d25dacbb87
parent 5cdf8383
......@@ -2763,7 +2763,7 @@ void mg_if_connect_tcp(struct mg_connection *nc,
mg_set_non_blocking_mode(nc->sock);
#endif
rc = connect(nc->sock, &sa->sa, sizeof(sa->sin));
nc->err = rc == 0 ? 0 : (errno ? errno : 1);
nc->err = mg_is_error(rc) ? errno : 0;
DBG(("%p sock %d err %d", nc, nc->sock, nc->err));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment