summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2010-06-20 22:59:51 -0700
committerH. Peter Anvin <hpa@zytor.com>2010-06-20 22:59:51 -0700
commit9ab68ade0a76d2cb3b3ae2f917bbd266c02e2f18 (patch)
tree14c3372390200a4a4e86f07b844265a2c7d47c7a
parent69122bdfbcbf4f17cbf027e7873633a1528ef874 (diff)
downloadsyslinux-9ab68ade0a76d2cb3b3ae2f917bbd266c02e2f18.tar.gz
pxe: correct the parsing of tftp:// URLs
Correct the parsing of tftp:// URLs. DNS handling still needs to be unbroken. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-rw-r--r--core/fs/pxe/pxe.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/fs/pxe/pxe.c b/core/fs/pxe/pxe.c
index 4ca250c3..a94a8d0d 100644
--- 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++;