From 9ab68ade0a76d2cb3b3ae2f917bbd266c02e2f18 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Sun, 20 Jun 2010 22:59:51 -0700 Subject: [PATCH] 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 --- core/fs/pxe/pxe.c | 4 ++-- 1 file 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++; -- 2.7.4