mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-02 13:20:51 +00:00
Fix valgrind test
This commit is contained in:
1 parent
5271626947
commit
b82953405d
3 files changed
+3
-1
No files matched your search
@@ -361,6 +361,7 @@ void mg_connect_resolved(struct mg_connection *c) {
|
||||
static SOCKET raccept(SOCKET sock, union usa *usa, socklen_t len) {
|
||||
SOCKET s = INVALID_SOCKET;
|
||||
do {
|
||||
memset(usa, 0, sizeof(*usa));
|
||||
s = accept(sock, &usa->sa, &len);
|
||||
} while (s == INVALID_SOCKET && errno == EINTR);
|
||||
return s;
|
||||
|
||||
Reference in new issue
Block a user