- Remove clang analysis warnings.

git-svn-id: file:///svn/unbound/trunk@4998 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
Wouter Wijngaards 2018-11-29 14:39:26 +00:00
parent b23c373f4d
commit c1c1cd97e7
3 changed files with 3 additions and 0 deletions

View file

@ -5,6 +5,7 @@
- Fix that unbound-checkconf does not complains if the config file
is not placed inside the chroot.
- Refuse to start with no ports.
- Remove clang analysis warnings.
28 November 2018: Wouter
- Fix leak in chroot fix for auth-zone.

View file

@ -59,6 +59,7 @@ for x in cachedb/*.c daemon/*.c dns64/*.c $DNSCRYPT_SRC $DNSTAP_SRC edns-subnet/
if test "$x" = "util/configlexer.c"; then continue; fi
if test "$x" = "util/configparser.c"; then continue; fi
if test "$x" = "testcode/signit.c"; then continue; fi
if test "$x" = "compat/reallocarray.c"; then continue; fi
echo clang --analyze $CPPFLAGS $x
plist=`basename $x .c`.plist
rm -rf $plist

View file

@ -235,6 +235,7 @@ void neg_delete_data(struct val_neg_cache* neg, struct val_neg_data* el)
/* remove it from the lru list */
neg_lru_remove(neg, el);
log_assert(neg->first != el && neg->last != el);
/* go up the tree and reduce counts */
p = el;