From: H. Peter Anvin Date: Tue, 20 Jul 2010 06:42:41 +0000 (-0700) Subject: pxe: fix byte order of output from parse_dotquad() X-Git-Tag: syslinux-4.02-pre5~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=16834e092474b650ecd87bab2a6683a269b9f3ef;p=profile%2Fivi%2Fsyslinux.git pxe: fix byte order of output from parse_dotquad() parse_dotquad() incorrectly returned output in host byte order. Reported-by: Alexander Wuerstlein Signed-off-by: H. Peter Anvin --- diff --git a/core/fs/pxe/pxe.c b/core/fs/pxe/pxe.c index 25bd094..0238ed4 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; }