This commit is contained in:
Sergey Lyubka 2021-09-22 20:38:28 +01:00
parent f73ebbf689
commit c490ff8ae7
2 changed files with 2 additions and 2 deletions

View File

@ -3027,7 +3027,7 @@ SOCKET mg_open_listener(const char *url, struct mg_addr *addr) {
}
}
if (fd == INVALID_SOCKET) {
if (s_err = 0) s_err = MG_SOCK_ERRNO;
if (s_err == 0) s_err = MG_SOCK_ERRNO;
LOG(LL_ERROR, ("Failed to listen on %s, errno %d", url, s_err));
}

View File

@ -181,7 +181,7 @@ SOCKET mg_open_listener(const char *url, struct mg_addr *addr) {
}
}
if (fd == INVALID_SOCKET) {
if (s_err = 0) s_err = MG_SOCK_ERRNO;
if (s_err == 0) s_err = MG_SOCK_ERRNO;
LOG(LL_ERROR, ("Failed to listen on %s, errno %d", url, s_err));
}