diff options
author | Lukas Slebodnik <lslebodn@redhat.com> | 2013-07-18 11:44:24 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2013-07-22 11:44:09 +0200 |
commit | 08e3f641a8b8d6b5d7eb0b523599702eda960da2 (patch) | |
tree | 1df65df3a326aca81d3bb003502668184268a421 /src/providers | |
parent | d6c2ee96f5f181f21b0003aa8f3506e82522291d (diff) | |
download | sssd-08e3f641a8b8d6b5d7eb0b523599702eda960da2.tar.gz sssd-08e3f641a8b8d6b5d7eb0b523599702eda960da2.tar.bz2 sssd-08e3f641a8b8d6b5d7eb0b523599702eda960da2.zip |
Fix warnings: uninitialized variable
Diffstat (limited to 'src/providers')
-rw-r--r-- | src/providers/krb5/krb5_child.c | 3 | ||||
-rw-r--r-- | src/providers/krb5/krb5_child_handler.c | 4 |
2 files changed, 3 insertions, 4 deletions
diff --git a/src/providers/krb5/krb5_child.c b/src/providers/krb5/krb5_child.c index 051079fd..47c8fb29 100644 --- a/src/providers/krb5/krb5_child.c +++ b/src/providers/krb5/krb5_child.c @@ -1820,8 +1820,7 @@ static krb5_error_code check_fast_ccache(TALLOC_CTX *mem_ctx, tmp_ctx = talloc_new(NULL); if (tmp_ctx == NULL) { DEBUG(1, ("talloc_new failed.\n")); - kerr = ENOMEM; - goto done; + return ENOMEM; } ccname = talloc_asprintf(tmp_ctx, "FILE:%s/fast_ccache_%s", DB_PATH, realm); diff --git a/src/providers/krb5/krb5_child_handler.c b/src/providers/krb5/krb5_child_handler.c index dda53ab1..044c2719 100644 --- a/src/providers/krb5/krb5_child_handler.c +++ b/src/providers/krb5/krb5_child_handler.c @@ -486,7 +486,7 @@ parse_krb5_child_response(TALLOC_CTX *mem_ctx, uint8_t *buf, ssize_t len, errno_t ret; bool skip; char *ccname = NULL; - size_t ccname_len; + size_t ccname_len = 0; int32_t msg_status; int32_t msg_type; int32_t msg_len; @@ -496,7 +496,7 @@ parse_krb5_child_response(TALLOC_CTX *mem_ctx, uint8_t *buf, ssize_t len, uint32_t *msg_subtype; struct krb5_child_response *res; const char *upn = NULL; - size_t upn_len; + size_t upn_len = 0; bool otp = false; if ((size_t) len < sizeof(int32_t)) { |