Skip to content

Commit 1cfc29d

Browse files
committed
Low: libcrmcommon: Fix Coverity check_after_deref false positive
Signed-off-by: Reid Wahl <nrwahl@protonmail.com>
1 parent 566f2e2 commit 1cfc29d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

lib/common/acl.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -976,6 +976,7 @@ pcmk__acl_filtered_copy(const char *user, xmlDoc *acl_source, xmlNode *xml)
976976
pcmk__trace("Filtering XML copy using user '%s' ACLs", user);
977977
filter_unreadable_nodes(&result, false);
978978

979+
// coverity[check_after_deref : FALSE] Doesn't understand g_clear_pointer
979980
if (result == NULL) {
980981
// Entire document was freed, so don't free docpriv->acls here
981982
pcmk__trace("ACLs deny user '%s' access to entire XML document", user);

0 commit comments

Comments
 (0)