diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2013-03-05 00:11:46 +0100 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2013-03-05 17:36:21 +0100 |
commit | 1402e7140d143aaf48224c23182c2c12c2a89cd7 (patch) | |
tree | 9f429e9d36b60f522c5b87ff654c2be896222f78 /src/providers/ldap/sdap_reinit.c | |
parent | 6d678b590c0fca3f942e6ab1e4b6156d478a97e9 (diff) | |
download | sssd-1402e7140d143aaf48224c23182c2c12c2a89cd7.tar.gz sssd-1402e7140d143aaf48224c23182c2c12c2a89cd7.tar.bz2 sssd-1402e7140d143aaf48224c23182c2c12c2a89cd7.zip |
Check the return value of sysdb_search_services
Diffstat (limited to 'src/providers/ldap/sdap_reinit.c')
-rw-r--r-- | src/providers/ldap/sdap_reinit.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/providers/ldap/sdap_reinit.c b/src/providers/ldap/sdap_reinit.c index 3fba9360..b273c1a6 100644 --- a/src/providers/ldap/sdap_reinit.c +++ b/src/providers/ldap/sdap_reinit.c @@ -165,6 +165,12 @@ static errno_t sdap_reinit_clear_usn(struct sysdb_ctx *sysdb, /* reset services' usn */ ret = sysdb_search_services(tmp_ctx, sysdb, domain, "", attrs, &msgs_num, &msgs); + if (ret != EOK) { + DEBUG(SSSDBG_OP_FAILURE, + ("Cannot search services [%d]: %s\n", ret, strerror(ret))); + goto done; + } + sdap_delete_msgs_usn(sysdb, msgs, msgs_num); talloc_zfree(msgs); msgs_num = 0; |