[syslinux:elflink] pxe: Don't leak inode on timeout
syslinux-bot for Matt Fleming
matt.fleming at intel.com
Tue Nov 27 14:15:04 PST 2012
Commit-ID: 73bf7c135dfce1d0194de6677ed85495c64e300f
Gitweb: http://www.syslinux.org/commit/73bf7c135dfce1d0194de6677ed85495c64e300f
Author: Matt Fleming <matt.fleming at intel.com>
AuthorDate: Tue, 27 Nov 2012 16:11:26 +0000
Committer: Matt Fleming <matt.fleming at intel.com>
CommitDate: Tue, 27 Nov 2012 20:48:38 +0000
pxe: Don't leak inode on timeout
Signed-off-by: Matt Fleming <matt.fleming at intel.com>
---
core/fs/pxe/pxe.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/core/fs/pxe/pxe.c b/core/fs/pxe/pxe.c
index 6f490ce..3cc6497 100644
--- a/core/fs/pxe/pxe.c
+++ b/core/fs/pxe/pxe.c
@@ -796,8 +796,10 @@ static void __pxe_searchdir(const char *filename, struct file *file)
sendreq:
timeout = *timeout_ptr++;
- if (!timeout)
+ if (!timeout) {
+ free_socket(inode);
return; /* No file available... */
+ }
oldtime = jiffies();
socket->tftp_remoteip = ip;
More information about the Syslinux-commits
mailing list