diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2012-04-25 16:20:59 +0200 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2012-05-02 08:10:16 -0400 |
commit | 20aee697450e41423ca0e2fc749e659d18f19976 (patch) | |
tree | e94337f72e2c50a1b4e17047c6a06ef5b4bd1346 /src | |
parent | 69e7d6649b58c66675ef38084868fc5356c5a240 (diff) | |
download | sssd-20aee697450e41423ca0e2fc749e659d18f19976.tar.gz sssd-20aee697450e41423ca0e2fc749e659d18f19976.tar.bz2 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.c | 1 |
1 files changed, 1 insertions, 0 deletions
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); |