From 8589e8f5bc39191e9854310dcc90d9f55a2c70fa Mon Sep 17 00:00:00 2001 From: BytesGalore Date: Fri, 1 Apr 2016 21:36:32 +0200 Subject: [PATCH] fib: removed obsolete check for default route match --- sys/net/network_layer/fib/fib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/net/network_layer/fib/fib.c b/sys/net/network_layer/fib/fib.c index fbb434c2d2..a8475d5d3e 100644 --- a/sys/net/network_layer/fib/fib.c +++ b/sys/net/network_layer/fib/fib.c @@ -132,8 +132,8 @@ static int fib_find_entry(fib_table_t *table, uint8_t *dst, size_t dst_size, int ret_comp = universal_address_compare(table->data.entries[i].global, dst, &match_size); /* If we found an exact match */ - if ((ret_comp == UNIVERSAL_ADDRESS_EQUAL) - || (is_all_zeros_addr && (match_size == 0) && (ret_comp == UNIVERSAL_ADDRESS_IS_ALL_ZERO_ADDRESS))) { + if ((ret_comp == UNIVERSAL_ADDRESS_EQUAL) + || (is_all_zeros_addr && (ret_comp == UNIVERSAL_ADDRESS_IS_ALL_ZERO_ADDRESS))) { entry_arr[0] = &(table->data.entries[i]); *entry_arr_size = 1; /* we will not find a better one so we return */