mirror of
https://github.com/troglobit/finit.git
synced 2026-10-16 10:39:35 +00: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 parent
488e6c2adf
commit
6e863a7872
1 file changed
+1
-1
+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