aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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++;