summaryrefslogtreecommitdiffstats
path: root/src/providers
diff options
context:
space:
mode:
Diffstat (limited to 'src/providers')
-rw-r--r--src/providers/ldap/sdap_async_groups.c8
-rw-r--r--src/providers/ldap/sdap_sudo.c4
2 files changed, 6 insertions, 6 deletions
diff --git a/src/providers/ldap/sdap_async_groups.c b/src/providers/ldap/sdap_async_groups.c
index 67dddae70..3948a7436 100644
--- a/src/providers/ldap/sdap_async_groups.c
+++ b/src/providers/ldap/sdap_async_groups.c
@@ -3174,8 +3174,8 @@ static void sdap_nested_group_process_user(struct tevent_req *subreq)
struct sdap_nested_group_ctx *state =
tevent_req_data(req, struct sdap_nested_group_ctx);
TALLOC_CTX *tmp_ctx;
- size_t count;
- struct sysdb_attrs **replies;
+ size_t count = 0;
+ struct sysdb_attrs **replies = NULL;
int hret;
hash_key_t key;
hash_value_t value;
@@ -3383,8 +3383,8 @@ static void sdap_nested_group_process_ldap_user(struct tevent_req *subreq)
struct sdap_nested_group_ctx *state =
tevent_req_data(req, struct sdap_nested_group_ctx);
TALLOC_CTX *tmp_ctx;
- size_t count;
- struct sysdb_attrs **replies;
+ size_t count = 0;
+ struct sysdb_attrs **replies = NULL;
int hret;
hash_key_t key;
hash_value_t value;
diff --git a/src/providers/ldap/sdap_sudo.c b/src/providers/ldap/sdap_sudo.c
index 636eae41b..acdc9a91c 100644
--- a/src/providers/ldap/sdap_sudo.c
+++ b/src/providers/ldap/sdap_sudo.c
@@ -1009,8 +1009,8 @@ static void sdap_sudo_periodical_full_refresh_done(struct tevent_req *req)
struct tevent_req *subreq = NULL; /* req from sdap_sudo_full_refresh_send() */
struct sdap_sudo_ctx *sudo_ctx = NULL;
time_t delay;
- int dp_error;
- int error;
+ int dp_error = DP_ERR_FATAL;
+ int error = EFAULT;
int ret;
ret = sdap_sudo_timer_recv(req, req, &subreq);