From 3316160629cc0626614f28aea2e045d4979bf5c8 Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Mon, 9 Oct 2000 20:01:10 +0000 Subject: [PATCH] (Fopen_network_stream) [HAVE_GETADDRINFO]: Reset S to -1 after socket is closed, to fall through to error processing. --- src/process.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/process.c b/src/process.c index a4845c99d58..48c960f9a43 100644 --- a/src/process.c +++ b/src/process.c @@ -1897,6 +1897,7 @@ Fourth arg SERVICE is name of the service desired, or an integer\n\ count1 = specpdl_ptr - specpdl; emacs_close (s); + s = -1; } freeaddrinfo (res); -- 2.39.2