summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2012-07-09 12:05:37 -0400
committerStephen Gallagher <sgallagh@redhat.com>2012-07-09 13:49:21 -0400
commit92c6d2bbff680c3f4a83fbb1360eed098e7bcf2e (patch)
treea3e433626ddb86f1363f09470d080c1d7b1a91ea /src
parentb186ed8ce10ac711ccde35f6ec5131bcdd59f668 (diff)
downloadsssd-92c6d2bbff680c3f4a83fbb1360eed098e7bcf2e.tar.gz
sssd-92c6d2bbff680c3f4a83fbb1360eed098e7bcf2e.tar.xz
sssd-92c6d2bbff680c3f4a83fbb1360eed098e7bcf2e.zip
Fix uninitialized memcpy error
Coverity #12784
Diffstat (limited to 'src')
-rw-r--r--src/providers/krb5/krb5_child_handler.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/providers/krb5/krb5_child_handler.c b/src/providers/krb5/krb5_child_handler.c
index 6343f3b53..0526ff019 100644
--- a/src/providers/krb5/krb5_child_handler.c
+++ b/src/providers/krb5/krb5_child_handler.c
@@ -444,6 +444,8 @@ parse_krb5_child_response(TALLOC_CTX *mem_ctx, uint8_t *buf, ssize_t len,
return EINVAL;
}
+ memset(&tgtt, 0, sizeof(struct tgt_times));
+
if (pwd_exp_warning < 0) {
pwd_exp_warning = KERBEROS_PWEXPIRE_WARNING_TIME;
}