mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-17 12:46:27 +00:00
iscsi-scstd: Fix a potential file descriptor leak
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6375 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user