diff --git a/iscsi-scst/usr/message.c b/iscsi-scst/usr/message.c index acd257153..a0f34f0f3 100644 --- a/iscsi-scst/usr/message.c +++ b/iscsi-scst/usr/message.c @@ -194,7 +194,7 @@ send: err = writev(fd, iov, 2 + !!iov[2].iov_len); out: - if (fd > 0) + if (fd >= 0) close(fd); if (rsp_data) free(rsp_data);