From: sdhsdh Date: Mon, 18 Jan 2010 20:18:18 +0000 (+0000) Subject: small bug fix: thanks to Benedikt Andreas Koeppel X-Git-Tag: rc_6_tinyos_2_1_1~54 X-Git-Url: https://oss.titaniummirror.com/gitweb/?p=tinyos-2.x.git;a=commitdiff_plain;h=167699cbf159e22a08c14a46fd2c68c72b09c10a small bug fix: thanks to Benedikt Andreas Koeppel --- diff --git a/support/sdk/c/blip/lib6lowpan/lib6lowpanIP.c b/support/sdk/c/blip/lib6lowpan/lib6lowpanIP.c index 2cf73577..d16f9bdd 100644 --- a/support/sdk/c/blip/lib6lowpan/lib6lowpanIP.c +++ b/support/sdk/c/blip/lib6lowpan/lib6lowpanIP.c @@ -620,8 +620,10 @@ void inet_pton6(char *addr, struct in6_addr *dest) { cur = 0; } p++; - if (*p == '\0') + if (*p == '\0') { + dest->s6_addr16[block++] = hton16(cur); return; + } if (*(p - 1) == ':' && *p == ':') { break; }