Bug fix in ip parser. The result wasn't converted to network byte order
This commit is contained in:
+1
-1
@@ -513,7 +513,7 @@ static bool parse_ip(const char *ip, ip_address_t *parsed_ip)
|
|||||||
// other than the address in it.
|
// other than the address in it.
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
*parsed_ip = value;
|
*parsed_ip = cpu_to_net_u32(value);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user