diff options
Diffstat (limited to 'src/providers/ldap')
-rw-r--r-- | src/providers/ldap/sdap_async_connection.c | 2 | ||||
-rw-r--r-- | src/providers/ldap/sdap_async_sudo.c | 2 | ||||
-rw-r--r-- | src/providers/ldap/sdap_sudo.c | 12 |
3 files changed, 8 insertions, 8 deletions
diff --git a/src/providers/ldap/sdap_async_connection.c b/src/providers/ldap/sdap_async_connection.c index 65bc667b..d7beaa80 100644 --- a/src/providers/ldap/sdap_async_connection.c +++ b/src/providers/ldap/sdap_async_connection.c @@ -1310,7 +1310,7 @@ static void sdap_cli_resolve_done(struct tevent_req *subreq) struct sdap_cli_connect_state *state = tevent_req_data(req, struct sdap_cli_connect_state); int ret; - bool use_tls; + bool use_tls = true; switch (state->force_tls) { case CON_TLS_DFL: diff --git a/src/providers/ldap/sdap_async_sudo.c b/src/providers/ldap/sdap_async_sudo.c index 92200aa7..db5e056d 100644 --- a/src/providers/ldap/sdap_async_sudo.c +++ b/src/providers/ldap/sdap_async_sudo.c @@ -460,7 +460,7 @@ static void sdap_sudo_load_sudoers_done(struct tevent_req *subreq) struct tevent_req *req = NULL; /* req from sdap_sudo_refresh_send() */ struct sdap_sudo_refresh_state *state = NULL; struct sysdb_attrs **rules = NULL; - size_t rules_count; + size_t rules_count = 0; int ret; errno_t sret; bool in_transaction = false; diff --git a/src/providers/ldap/sdap_sudo.c b/src/providers/ldap/sdap_sudo.c index 0d590023..cd3435b8 100644 --- a/src/providers/ldap/sdap_sudo.c +++ b/src/providers/ldap/sdap_sudo.c @@ -437,8 +437,8 @@ static void sdap_sudo_reply(struct tevent_req *req) { struct be_req *be_req = NULL; struct be_sudo_req *sudo_req = NULL; - int dp_error; - int error; + int dp_error = DP_ERR_OK; + int error = EOK; int ret; be_req = tevent_req_callback_data(req, struct be_req); @@ -926,8 +926,8 @@ static void sdap_sudo_periodical_first_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_OK; + int error = EOK; int ret; ret = sdap_sudo_timer_recv(req, req, &subreq); @@ -985,8 +985,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_OK; + int error = EOK; int ret; ret = sdap_sudo_timer_recv(req, req, &subreq); |