summaryrefslogtreecommitdiff
path: root/src/providers/ldap
diff options
context:
space:
mode:
Diffstat (limited to 'src/providers/ldap')
-rw-r--r--src/providers/ldap/ldap_id_cleanup.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/providers/ldap/ldap_id_cleanup.c b/src/providers/ldap/ldap_id_cleanup.c
index 64de5403..53c9501f 100644
--- a/src/providers/ldap/ldap_id_cleanup.c
+++ b/src/providers/ldap/ldap_id_cleanup.c
@@ -277,7 +277,7 @@ static struct tevent_req *cleanup_users_send(TALLOC_CTX *memctx,
struct cleanup_users_state *state;
static const char *attrs[] = { SYSDB_NAME, SYSDB_UIDNUM, NULL };
time_t now = time(NULL);
- char *subfilter;
+ char *subfilter = NULL;
int account_cache_expiration;
req = tevent_req_create(memctx, &state, struct cleanup_users_state);
@@ -298,12 +298,6 @@ static struct tevent_req *cleanup_users_send(TALLOC_CTX *memctx,
DEBUG(9, ("Cache expiration is set to %d days\n",
account_cache_expiration));
- if (!subfilter) {
- DEBUG(2, ("Failed to build filter\n"));
- talloc_zfree(req);
- return NULL;
- }
-
if (account_cache_expiration > 0) {
subfilter = talloc_asprintf(state,
"(&(!(%s=0))(%s<=%ld)(|(!(%s=*))(%s<=%ld)))",