mirror of
https://github.com/troglobit/finit.git
synced 2026-11-29 21:08:21 +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)
|
if (errno != ENOENT)
|
||||||
warnx("Failed connecting to finit");
|
warnx("Failed connecting to finit");
|
||||||
close(sd);
|
close(sd);
|
||||||
return -1;
|
sd = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
return sd;
|
return sd;
|
||||||
|
|||||||
Reference in new issue
Block a user