[riot-notifications] [RIOT] fib: repaired prefix/default gateway handling and added two according unittests (#3233)

BytesGalore notifications at github.com
Mon Jun 22 17:20:09 CEST 2015


> @@ -182,7 +182,7 @@ int universal_address_compare(universal_address_container_t *entry,
>  
>      /* Get the index of the first trailing `0` (indicates a prefix) */
>      int i = 0;
> -    for( i = entry->address_size-1; i >= 0; --i) {
> +    for( i = entry->address_size-1; i > 0; --i) {

this caused `i` to go below `0` when we used an all `0` address.

---
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/3233/files#r32945821
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20150622/212d30cd/attachment.html>


More information about the notifications mailing list