From 20aee697450e41423ca0e2fc749e659d18f19976 Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Wed, 25 Apr 2012 16:20:59 +0200 Subject: 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. --- src/db/sysdb_selinux.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/db') diff --git a/src/db/sysdb_selinux.c b/src/db/sysdb_selinux.c index 5df5fe0e..e9f2da11 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); -- cgit