]> git.ipfire.org Git - thirdparty/bind9.git/commit
Address Coverity warnings in keymgr.c
authorMatthijs Mekking <matthijs@isc.org>
Mon, 6 Apr 2020 07:59:18 +0000 (09:59 +0200)
committerMatthijs Mekking <matthijs@isc.org>
Mon, 20 Apr 2020 07:21:40 +0000 (09:21 +0200)
commit564f9dca3578234214eaffc4f6220a73315dde8f
treee31bab0586e35d1c0f1a64af6b19aabad1415911
parentd177585cb800b903333d78c7c789bfa9dd7921cc
Address Coverity warnings in keymgr.c

Coverity showed that the return value of `dst_key_gettime` was
unchecked in INITIALIZE_STATE. If DST_TIME_CREATED was not set we
would set the state to be initialized to a weird last changed time.

This would normally not happen because DST_TIME_CREATED is always
set. However, we would rather set the time to now (as the comment
also indicates) not match the creation time.

The comment on INITIALIZE_STATE also needs updating as we no
longer always initialize to HIDDEN.
CHANGES
lib/dns/keymgr.c