diff options
author | H. Peter Anvin <hpa@zytor.com> | 2010-06-20 22:59:51 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2010-06-20 22:59:51 -0700 |
commit | 9ab68ade0a76d2cb3b3ae2f917bbd266c02e2f18 (patch) | |
tree | 14c3372390200a4a4e86f07b844265a2c7d47c7a | |
parent | 69122bdfbcbf4f17cbf027e7873633a1528ef874 (diff) | |
download | syslinux-9ab68ade0a76d2cb3b3ae2f917bbd266c02e2f18.tar.gz syslinux-9ab68ade0a76d2cb3b3ae2f917bbd266c02e2f18.tar.xz syslinux-9ab68ade0a76d2cb3b3ae2f917bbd266c02e2f18.zip |
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.c | 4 |
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++; |