aboutsummaryrefslogtreecommitdiffstats
path: root/core/fs/pxe/pxe.c
diff options
context:
space:
mode:
Diffstat (limited to 'core/fs/pxe/pxe.c')
-rw-r--r--core/fs/pxe/pxe.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/fs/pxe/pxe.c b/core/fs/pxe/pxe.c
index 6f490ce8..3cc64973 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;