mirror of
https://github.com/troglobit/finit.git
synced 2026-10-02 14:02:52 +07:00
client_connect(): ensure socket is also reset to -1 on error
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
+1
-1
@@ -48,7 +48,7 @@ int client_connect(void)
|
||||
if (errno != ENOENT)
|
||||
warnx("Failed connecting to finit");
|
||||
close(sd);
|
||||
return -1;
|
||||
sd = -1;
|
||||
}
|
||||
|
||||
return sd;
|
||||
|
||||
Reference in New Issue
Block a user