mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-27 12:26:24 +00:00
Unbreak macos tests
PUBLISHED_FROM=a9521579223cfbb68e2b7bcd221335d25dacbb87
This commit is contained in:
1 parent
5cdf838325
commit
0cf82744ce
1 file changed
+1
-1
+1
-1
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user