summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2012-04-25 16:20:59 +0200
committerStephen Gallagher <sgallagh@redhat.com>2012-05-02 08:10:16 -0400
commit20aee697450e41423ca0e2fc749e659d18f19976 (patch)
treee94337f72e2c50a1b4e17047c6a06ef5b4bd1346 /src
parent69e7d6649b58c66675ef38084868fc5356c5a240 (diff)
downloadsssd-20aee697450e41423ca0e2fc749e659d18f19976.tar.gz
sssd-20aee697450e41423ca0e2fc749e659d18f19976.tar.xz
sssd-20aee697450e41423ca0e2fc749e659d18f19976.zip
SYSDB: return EOK if empty message is passed into get_rm_msg
If the code never entered the loop in get_rm_message, we would return arbitrary return value.
Diffstat (limited to 'src')
-rw-r--r--src/db/sysdb_selinux.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/db/sysdb_selinux.c b/src/db/sysdb_selinux.c
index 5df5fe0e3..e9f2da11b 100644
--- a/src/db/sysdb_selinux.c
+++ b/src/db/sysdb_selinux.c
@@ -56,6 +56,7 @@ static errno_t get_rm_msg(TALLOC_CTX *mem_ctx,
rm_msg->num_elements++;
}
+ ret = EOK;
done:
if (ret != EOK) {
talloc_free(rm_msg);