projects
/
platform
/
upstream
/
syslinux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
239fed5
)
pxe: allow TFTP server IP to be empty when not using TFTP
author
Michael Brown
<mcb30@ipxe.org>
Mon, 28 Mar 2011 19:44:17 +0000
(20:44 +0100)
committer
Michael Brown
<mcb30@ipxe.org>
Mon, 28 Mar 2011 19:47:10 +0000
(20:47 +0100)
Reported-by: Marcus Grando <Marcus.Grando@corp.terra.com.br>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
core/fs/pxe/pxe.c
patch
|
blob
|
history
diff --git
a/core/fs/pxe/pxe.c
b/core/fs/pxe/pxe.c
index
aef2e7e
..
12bbdad
100644
(file)
--- a/
core/fs/pxe/pxe.c
+++ b/
core/fs/pxe/pxe.c
@@
-754,9
+754,6
@@
static void __pxe_searchdir(const char *filename, struct file *file)
break;
}
- if (!ip)
- return; /* No server */
-
buf++; /* Point *past* the final NULL */
memcpy(buf, rrq_tail, sizeof rrq_tail);
buf += sizeof rrq_tail;
@@
-792,6
+789,9
@@
static void __pxe_searchdir(const char *filename, struct file *file)
}
#endif /* GPXE */
+ if (!ip)
+ goto done; /* No server */
+
timeout_ptr = TimeoutTable; /* Reset timeout */
sendreq: