summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2010-07-19 23:42:41 -0700
committerH. Peter Anvin <hpa@zytor.com>2010-07-19 23:42:41 -0700
commit16834e092474b650ecd87bab2a6683a269b9f3ef (patch)
tree5920f7925f04083b5ddd3fe9f18412241ea0e426 /core
parenta8ed766f8c4eea40906086228f10785745342694 (diff)
downloadsyslinux-16834e092474b650ecd87bab2a6683a269b9f3ef.tar.gz
pxe: fix byte order of output from parse_dotquad()
parse_dotquad() incorrectly returned output in host byte order. Reported-by: Alexander Wuerstlein <arw@arw.name> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'core')
-rw-r--r--core/fs/pxe/pxe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/fs/pxe/pxe.c b/core/fs/pxe/pxe.c
index 25bd094d..0238ed4b 100644
--- a/core/fs/pxe/pxe.c
+++ b/core/fs/pxe/pxe.c
@@ -245,7 +245,7 @@ static const char *parse_dotquad(const char *ip_str, uint32_t *res)
}
p--;
- *res = ip;
+ *res = htonl(ip);
return p;
}