direct session backend: fix closing -1 on error

Found through static analysis
This commit is contained in:
Dominique Martinet 2018-06-30 10:28:41 +09:00
parent 1e17f4deb6
commit 266898ca1f

View file

@ -159,7 +159,9 @@ static void communicate(int sock) {
}
error:
send_msg(sock, ret ? -1 : fd, &ret, sizeof(ret));
if (fd >= 0) {
close(fd);
}
break;