diff options
author | Ondrej Kos <okos@redhat.com> | 2013-03-12 13:05:09 +0100 |
---|---|---|
committer | Simo Sorce <simo@redhat.com> | 2013-03-13 14:44:20 -0400 |
commit | 9f37bb2012faa136ef7c1f9fe93689ce2be85637 (patch) | |
tree | 80878f3fcba322f77e31b1cc72e38a07e2304c87 /src/providers/krb5 | |
parent | 7c0f319813a13723ebe8dc85b004565b63d5e44d (diff) | |
download | sssd-9f37bb2012faa136ef7c1f9fe93689ce2be85637.tar.gz sssd-9f37bb2012faa136ef7c1f9fe93689ce2be85637.tar.bz2 sssd-9f37bb2012faa136ef7c1f9fe93689ce2be85637.zip |
Fix initialization of multiple variables
Diffstat (limited to 'src/providers/krb5')
-rw-r--r-- | src/providers/krb5/krb5_child_handler.c | 4 | ||||
-rw-r--r-- | src/providers/krb5/krb5_renew_tgt.c | 3 |
2 files changed, 3 insertions, 4 deletions
diff --git a/src/providers/krb5/krb5_child_handler.c b/src/providers/krb5/krb5_child_handler.c index 99922b41..cc309af3 100644 --- a/src/providers/krb5/krb5_child_handler.c +++ b/src/providers/krb5/krb5_child_handler.c @@ -89,7 +89,7 @@ static errno_t pack_authtok(struct io_buffer *buf, size_t *rp, struct sss_auth_token *tok) { uint32_t auth_token_type; - uint32_t auth_token_length; + uint32_t auth_token_length = 0; const char *data; size_t len; errno_t ret = EOK; @@ -345,7 +345,7 @@ struct tevent_req *handle_child_send(TALLOC_CTX *mem_ctx, struct tevent_req *req, *subreq; struct handle_child_state *state; int ret; - struct io_buffer *buf; + struct io_buffer *buf = NULL; req = tevent_req_create(mem_ctx, &state, struct handle_child_state); if (req == NULL) { diff --git a/src/providers/krb5/krb5_renew_tgt.c b/src/providers/krb5/krb5_renew_tgt.c index e8957484..f2ee5d91 100644 --- a/src/providers/krb5/krb5_renew_tgt.c +++ b/src/providers/krb5/krb5_renew_tgt.c @@ -157,7 +157,7 @@ static errno_t renew_all_tgts(struct renew_tgt_ctx *renew_tgt_ctx) time_t now; struct auth_data *auth_data; struct renew_data *renew_data; - struct tevent_timer *te; + struct tevent_timer *te = NULL; ret = hash_entries(renew_tgt_ctx->tgt_table, &count, &entries); if (ret != HASH_SUCCESS) { @@ -197,7 +197,6 @@ static errno_t renew_all_tgts(struct renew_tgt_ctx *renew_tgt_ctx) entries[c].key.str); if (auth_data->key.str == NULL) { DEBUG(1, ("talloc_strdup failed.\n")); - te = NULL; } else { te = tevent_add_timer(renew_tgt_ctx->ev, auth_data, tevent_timeval_current(), |