diff options
| author | Ken Raeburn <raeburn@mit.edu> | 2008-06-27 04:47:23 +0000 |
|---|---|---|
| committer | Ken Raeburn <raeburn@mit.edu> | 2008-06-27 04:47:23 +0000 |
| commit | c0a7e03be880eff10ec93f7d4fcd5a2f8100be02 (patch) | |
| tree | 210f15f0074e247a3adb5b2b33aeafc7a79cd259 /src/clients | |
| parent | 7bd5a67e723d55454f9384255e58fbe00518baf6 (diff) | |
| download | krb5-c0a7e03be880eff10ec93f7d4fcd5a2f8100be02.tar.gz krb5-c0a7e03be880eff10ec93f7d4fcd5a2f8100be02.tar.xz krb5-c0a7e03be880eff10ec93f7d4fcd5a2f8100be02.zip | |
misc uninitialized-storage accesses
Fix some miscellaneous uninitialized-storage uses, mainly in unlikely error
paths.
ticket: new
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20487 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/clients')
| -rw-r--r-- | src/clients/kinit/kinit.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/clients/kinit/kinit.c b/src/clients/kinit/kinit.c index 05b50bf3b..506f551c1 100644 --- a/src/clients/kinit/kinit.c +++ b/src/clients/kinit/kinit.c @@ -1,7 +1,7 @@ /* * clients/kinit/kinit.c * - * Copyright 1990 by the Massachusetts Institute of Technology. + * Copyright 1990, 2008 by the Massachusetts Institute of Technology. * All Rights Reserved. * * Export of this software from the United States of America may @@ -805,10 +805,11 @@ k5_kinit(opts, k5) if (!got_k5) return 0; + memset(&my_creds, 0, sizeof(my_creds)); + code = krb5_get_init_creds_opt_alloc(k5->ctx, &options); if (code) goto cleanup; - memset(&my_creds, 0, sizeof(my_creds)); /* From this point on, we can goto cleanup because my_creds is |
