mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-01-29 00:32:51 +00:00
netdb: fixed warning about pointless comparison
This commit is contained in:
parent
bc30899168
commit
dbe703cfb0
@ -353,7 +353,7 @@ lwip_getaddrinfo(const char *nodename, const char *servname,
|
||||
/* invalid name length */
|
||||
return EAI_FAIL;
|
||||
}
|
||||
LWIP_ASSERT("namelen is too long", (namelen + 1) <= (mem_size_t)-1);
|
||||
LWIP_ASSERT("namelen is too long", total_size + namelen + 1 > total_size);
|
||||
total_size += namelen + 1;
|
||||
}
|
||||
/* If this fails, please report to lwip-devel! :-) */
|
||||
|
Loading…
x
Reference in New Issue
Block a user