From 2baa6cf1b5634a4fba9c3b0dceb6bbb50f1027d3 Mon Sep 17 00:00:00 2001 From: Joakim Eriksson Date: Tue, 8 Mar 2011 23:11:06 -0500 Subject: [PATCH] fixed so that ] is accepted as end of IPv6 address --- core/net/uiplib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/net/uiplib.c b/core/net/uiplib.c index 29db1f629..0bf35b039 100644 --- a/core/net/uiplib.c +++ b/core/net/uiplib.c @@ -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; }