From 0c95533a3118924de163d1c2298479149d0ea789 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Wed, 14 Feb 2018 15:29:45 +0100 Subject: allowedips: indicate to clang-analyzer that trie is non-null We check it in the block just above the only call to node_placement, so we're certain this is the case. --- src/allowedips.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/allowedips.c b/src/allowedips.c index 2c91271..282b819 100644 --- a/src/allowedips.c +++ b/src/allowedips.c @@ -170,6 +170,7 @@ static __always_inline struct wireguard_peer *lookup(struct allowedips_node __rc return peer; } +__attribute__((nonnull(1))) static inline bool node_placement(struct allowedips_node __rcu *trie, const u8 *key, u8 cidr, u8 bits, struct allowedips_node **rnode, struct mutex *lock) { bool exact = false; -- cgit v1.2.3-59-g8ed1b