From 458320cffb41fc4a313d5d9ce0e6985c28e785da Mon Sep 17 00:00:00 2001 From: Sergey Lyubka Date: Sun, 2 Mar 2014 10:12:12 +0000 Subject: [PATCH] Fixed #343 in conn2() for Lua --- mongoose.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mongoose.c b/mongoose.c index 81f4837c..b01b6968 100644 --- a/mongoose.c +++ b/mongoose.c @@ -3793,7 +3793,7 @@ static sock_t conn2(const char *host, int port) { if (host != NULL && (he = gethostbyname(host)) != NULL && (sock = socket(AF_INET, SOCK_STREAM, 0)) != INVALID_SOCKET) { - set_close_on_exec(sock); + ns_set_close_on_exec(sock); sin.sin_family = AF_INET; sin.sin_port = htons((uint16_t) port); sin.sin_addr = * (struct in_addr *) he->h_addr_list[0];