From b63fb7df6c4c6703f390078a45748c17d23c9fbb Mon Sep 17 00:00:00 2001 From: cozis Date: Tue, 16 May 2023 12:02:25 +0200 Subject: [PATCH] Bug fix in ip parser. The result wasn't converted to network byte order --- src/microtcp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/microtcp.c b/src/microtcp.c index 7b0b578..341db32 100644 --- a/src/microtcp.c +++ b/src/microtcp.c @@ -513,7 +513,7 @@ static bool parse_ip(const char *ip, ip_address_t *parsed_ip) // other than the address in it. return false; - *parsed_ip = value; + *parsed_ip = cpu_to_net_u32(value); return true; }