diff options
author | Aron Parsons <parsonsa@bit-sys.com> | 2015-04-29 03:19:32 +0000 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2015-04-29 17:09:04 +0200 |
commit | c520f40d1a2d77cf1d413451b5682297733521ed (patch) | |
tree | baba3223da39fe44e24f29b7bf139b0f81394969 | |
parent | f70a1adbfc30b9acc302027439fb8157e0c6ea2a (diff) | |
download | sssd-c520f40d1a2d77cf1d413451b5682297733521ed.tar.gz sssd-c520f40d1a2d77cf1d413451b5682297733521ed.tar.xz sssd-c520f40d1a2d77cf1d413451b5682297733521ed.zip |
IPA: fix segfault in ipa_s2n_exop
can be triggered on demand by assigning a POSIX group
with external members sudo privileges, then dropping
the cache and doing a sudo -U <user> -l.
Reviewed-by: Sumit Bose <sbose@redhat.com>
-rw-r--r-- | src/providers/ipa/ipa_s2n_exop.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/providers/ipa/ipa_s2n_exop.c b/src/providers/ipa/ipa_s2n_exop.c index 688fdefe8..d07923cff 100644 --- a/src/providers/ipa/ipa_s2n_exop.c +++ b/src/providers/ipa/ipa_s2n_exop.c @@ -2165,7 +2165,7 @@ static errno_t ipa_s2n_save_objects(struct sss_domain_info *dom, goto done; } - if (strcmp(view_name, SYSDB_DEFAULT_VIEW_NAME) != 0) { + if (view_name != NULL && strcmp(view_name, SYSDB_DEFAULT_VIEW_NAME) != 0) { /* For the default view the data return by the extdom plugin already * contains all needed data and it is not expected to have a separate * override object. */ |