summaryrefslogtreecommitdiff
path: root/lib/if.c
diff options
context:
space:
mode:
authorJafar Al-Gharaibeh <jafar@atcorp.com>2022-02-23 11:33:46 -0600
committerGitHub <noreply@github.com>2022-02-23 11:33:46 -0600
commiteaba619fc183f68a456b3918f449185b3b477426 (patch)
tree462ea355549d71f0b61803b21ae57217d051d128 /lib/if.c
parent474f8e031d6e52b92c2c7e243e163d1a064ef94f (diff)
parentbd6beab0a6722f4ea05b528010ee5064adc66e53 (diff)
Merge pull request #10621 from donaldsharp/cov_fun
Cov fun
Diffstat (limited to 'lib/if.c')
-rw-r--r--lib/if.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/if.c b/lib/if.c
index a2918b6d74..83fa85ecc1 100644
--- a/lib/if.c
+++ b/lib/if.c
@@ -490,7 +490,8 @@ struct connected *if_lookup_address(const void *matchaddr, int family,
addr.family = AF_INET6;
addr.u.prefix6 = *((struct in6_addr *)matchaddr);
addr.prefixlen = IPV6_MAX_BITLEN;
- }
+ } else
+ assert(!"Attempted lookup of family not supported");
match = NULL;