fixed so that ] is accepted as end of IPv6 address
This commit is contained in:
parent
590b0a1696
commit
2baa6cf1b5
1 changed files with 1 additions and 1 deletions
|
@ -88,7 +88,7 @@ uiplib_ipaddrconv(const char *addrstr, uip_ipaddr_t *ipaddr)
|
|||
value = (value << 4) + (tmp & 0xf);
|
||||
}
|
||||
}
|
||||
if(c != '\0') {
|
||||
if(c != '\0' && c != ']') {
|
||||
PRINTF("uiplib: too large address\n");
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue