[syslinux:master] pxe: correct the parsing of tftp:// URLs
syslinux-bot for H. Peter Anvin
hpa at zytor.com
Sun Jun 20 23:03:07 PDT 2010
Commit-ID: 9ab68ade0a76d2cb3b3ae2f917bbd266c02e2f18
Gitweb: http://syslinux.zytor.com/commit/9ab68ade0a76d2cb3b3ae2f917bbd266c02e2f18
Author: H. Peter Anvin <hpa at zytor.com>
AuthorDate: Sun, 20 Jun 2010 22:59:51 -0700
Committer: H. Peter Anvin <hpa at zytor.com>
CommitDate: Sun, 20 Jun 2010 22:59:51 -0700
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 at zytor.com>
---
core/fs/pxe/pxe.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/core/fs/pxe/pxe.c b/core/fs/pxe/pxe.c
index 4ca250c..a94a8d0 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++;
More information about the Syslinux-commits
mailing list