]> oss.titaniummirror.com Git - tinyos-2.x.git/commitdiff
small bug fix: thanks to Benedikt Andreas Koeppel <bkoeppel@ee.ethz.ch>
authorsdhsdh <sdhsdh>
Mon, 18 Jan 2010 20:18:18 +0000 (20:18 +0000)
committersdhsdh <sdhsdh>
Mon, 18 Jan 2010 20:18:18 +0000 (20:18 +0000)
support/sdk/c/blip/lib6lowpan/lib6lowpanIP.c

index 2cf73577b8bcb7d42518e1574376d2dadcc33eee..d16f9bdd6e44a51b7a3efd22e9ffafaafa9ddccd 100644 (file)
@@ -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;
     }