]> git.ipfire.org Git - thirdparty/bind9.git/commit
Fix CID 352776: Concurrent data access violations
authorMatthijs Mekking <matthijs@isc.org>
Mon, 16 May 2022 17:00:47 +0000 (19:00 +0200)
committerMatthijs Mekking <matthijs@isc.org>
Mon, 23 May 2022 09:36:13 +0000 (11:36 +0200)
commit1fa24d0afbc01d25d71446156758b3a945db5b5f
treed27f57540eb0eda38aea69d51ea513730d8044d0
parent0a19bb3bf38c4e80eaa3027c38212f776f9168f5
Fix CID 352776: Concurrent data access violations

*** CID 352776:  Concurrent data access violations  (MISSING_LOCK)
/lib/dns/dst_api.c: 474 in dst_key_setmodified()
468     dst_key_isexternal(dst_key_t *key) {
469 return (key->external);
470     }
471
472     void
473     dst_key_setmodified(dst_key_t *key, bool value) {
>>>     CID 352776:  Concurrent data access violations  (MISSING_LOCK)
>>>     Accessing "key->modified" without holding lock
>>> "dst_key.mdlock". Elsewhere, "dst_key.modified" is accessed with
>>> "dst_key.mdlock" held 8 out of 11 times (8 of these accesses
>>> strongly imply that it is necessary).
474 key->modified = value;
475     }
476
477     bool
478     dst_key_ismodified(dst_key_t *key) {
479 return (key->modified);
lib/dns/dst_api.c
lib/dns/include/dst/dst.h