diff options
Diffstat (limited to 'src/db')
-rw-r--r-- | src/db/sysdb_selinux.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/db/sysdb_selinux.c b/src/db/sysdb_selinux.c index eaf07b50..97648950 100644 --- a/src/db/sysdb_selinux.c +++ b/src/db/sysdb_selinux.c @@ -364,7 +364,7 @@ errno_t sysdb_search_selinux_usermap_by_username(TALLOC_CTX *mem_ctx, struct ldb_message **msgs = NULL; struct sysdb_attrs *user; struct sysdb_attrs *tmp_attrs; - struct ldb_message **usermaps; + struct ldb_message **usermaps = NULL; struct sss_domain_info *domain; struct ldb_dn *basedn; size_t msgs_count = 0; @@ -462,11 +462,6 @@ errno_t sysdb_search_selinux_usermap_by_username(TALLOC_CTX *mem_ctx, } } - if (usermaps[0] == NULL) { - ret = ENOENT; - goto done; - } - *_usermaps = talloc_steal(mem_ctx, usermaps); ret = EOK; |