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:
69122bd
)
pxe: correct the parsing of tftp:// URLs
author
H. Peter Anvin
<hpa@zytor.com>
Mon, 21 Jun 2010 05:59:51 +0000
(22:59 -0700)
committer
H. Peter Anvin
<hpa@zytor.com>
Mon, 21 Jun 2010 05:59:51 +0000
(22:59 -0700)
Correct the parsing of tftp:// URLs. DNS handling still needs to be
unbroken.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
core/fs/pxe/pxe.c
patch
|
blob
|
history
diff --git
a/core/fs/pxe/pxe.c
b/core/fs/pxe/pxe.c
index
4ca250c
..
a94a8d0
100644
(file)
--- a/
core/fs/pxe/pxe.c
+++ b/
core/fs/pxe/pxe.c
@@
-705,8
+705,8
@@
static void pxe_searchdir(const char *filename, struct file *file)
while (*np && *np != '/' && *np != ':')
np++;
if (np > filename + 7) {
- if (parse_dotquad(filename, &ip) != np)
- ip = dns_resolv(filename);
+ if (parse_dotquad(filename
+ 7
, &ip) != np)
+ ip = dns_resolv(filename
+ 7
);
}
if (*np == ':') {
np++;