]> git.ipfire.org Git - thirdparty/systemd.git/commit
resolved: simplify min_ttl check
authorLuca Boccassi <luca.boccassi@microsoft.com>
Wed, 17 Mar 2021 14:34:36 +0000 (14:34 +0000)
committerLuca Boccassi <luca.boccassi@gmail.com>
Wed, 17 Mar 2021 18:56:33 +0000 (18:56 +0000)
commit18da93648169f9bbf48a979031bd634c4bee7e95
tree2a7304912f2b5a36d869be155d438f91af6e1ec6
parent04820600e712affce95fcbab13de55edef216753
resolved: simplify min_ttl check

rr is asserted upon a few lines above, no need to check for null.
Coverity-found issue, CID 1450844

  CID 1450844:  Null pointer dereferences  (REVERSE_INULL)
  Null-checking "rr" suggests that it may be null, but it has already
    been dereferenced on all paths leading to the check.
src/resolve/resolved-dns-cache.c