Commit Graph

23090 Commits

Author SHA1 Message Date
Love Hörnquist Åstrand
765d501701 keys cant be NULL after assiging a static variable to it, cid#4
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24134 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-11 05:05:32 +00:00
Love Hörnquist Åstrand
dfa2b7030c use calloc and by that way avoid NULL de-ref, cid#31
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24133 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-11 05:05:21 +00:00
Love Hörnquist Åstrand
1f82ad5700 read dead code, cid#5
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24132 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-11 05:05:11 +00:00
Love Hörnquist Åstrand
e295c94913 allow freeing of client_params=NULL cid#54
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24131 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-11 05:05:00 +00:00
Love Hörnquist Åstrand
9c92a36dd8 return up kdc_cert from signing operation so that OSCP can do the right thing. cid#55
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24130 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-11 05:04:50 +00:00
Love Hörnquist Åstrand
bb8485b49c check return value from krb5_decrypt_iov_ivec
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24129 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-11 05:04:39 +00:00
Love Hörnquist Åstrand
76f849a64a return NULL in return value on error
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24128 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-11 05:04:29 +00:00
Love Hörnquist Åstrand
95b4de5cd1 check the right variable, cid#3
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24127 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-11 05:04:19 +00:00
Love Hörnquist Åstrand
7a8202a4d9 free name on error, cid#69
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24126 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-11 05:04:09 +00:00
Love Hörnquist Åstrand
d97b2360b9 free krb5_ccache on error, cid#49
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24125 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-11 05:03:58 +00:00
Love Hörnquist Åstrand
62965c76dd free krb5_storage
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24124 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-11 05:03:48 +00:00
Love Hörnquist Åstrand
5f961f1e39 copy data is there is data to copy, cid#22
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24123 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-11 05:03:37 +00:00
Love Hörnquist Åstrand
cc0575ed41 on failure set hex_encode output to NULL
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24122 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-11 05:03:27 +00:00
Love Hörnquist Åstrand
c9122e8b28 on failure set hex_encode output to NULL
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24121 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-11 05:03:17 +00:00
Love Hörnquist Åstrand
91f2ef3f76 dont leak addr on error, cid#81
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24120 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-11 05:03:07 +00:00
Love Hörnquist Åstrand
1abdd59600 dont leak scache context on error, cid#82
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24119 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-11 05:02:57 +00:00
Love Hörnquist Åstrand
c96c9b0ced check that valid enctypes are not 0, cid#29
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24118 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-11 05:02:43 +00:00
Love Hörnquist Åstrand
6dd6406d82 allow NULL input to krb5_free_config_files
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24117 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-11 05:02:32 +00:00
Love Hörnquist Åstrand
209dbbb1e0 use calloc
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24116 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-11 05:02:22 +00:00
Love Hörnquist Åstrand
466f1f1cb4 free array when done, cid#127
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24115 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-11 05:02:11 +00:00
Love Hörnquist Åstrand
b323af1a4a check that ctx is not a null ptr before deref cid#130
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24114 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-11 05:02:01 +00:00
Love Hörnquist Åstrand
45b17f2891 check that ctx is not a null ptr before deref cid#131
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24113 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-11 05:01:51 +00:00
Love Hörnquist Åstrand
c90f113531 check that ctx is not a null ptr before deref cid#132
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24112 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-11 05:01:41 +00:00
Love Hörnquist Åstrand
89632983d3 check that ctx is not a null ptr before deref cid#133
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24111 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-11 05:01:30 +00:00
Love Hörnquist Åstrand
92896a8aab check that ctx is not a null ptr before deref cid#140
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24110 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-11 05:01:20 +00:00
Love Hörnquist Åstrand
b35c56fff6 check for value of get_mic, not that is a pointer. cid#141
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24109 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-11 05:01:10 +00:00
Love Hörnquist Åstrand
0e01d8fa11 check for value of get_mic, not that is a pointer. cid#141
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24108 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-11 05:01:00 +00:00
Love Hörnquist Åstrand
7f51de4922 check that length > 0, not that data is a pointer, cid#143
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24107 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-11 05:00:49 +00:00
Love Hörnquist Åstrand
c1a4666f81 mutex is always allocated, cid#142
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24106 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-11 05:00:39 +00:00
Love Hörnquist Åstrand
ef65ca7a16 free data on write error back on the tcp socket cid#123, make sure we dont write more data back then we got
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24105 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-11 05:00:29 +00:00
Love Hörnquist Åstrand
a1ebdfc19c remove dead code: cid# 11
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24104 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-11 05:00:18 +00:00
Love Hörnquist Åstrand
af50e8483c free subkey earlier, part of #cid 122
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24103 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-11 05:00:08 +00:00
Love Hörnquist Åstrand
f97807582c krb5_copy_keyblock: on malloc error, free keyblock
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24102 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-11 04:59:58 +00:00
Love Hörnquist Åstrand
a3107b9af4 free hx509_query on non matching cert. cid#120
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24101 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-11 04:59:48 +00:00
Love Hörnquist Åstrand
1bcabc9f49 dont double free on error cid#155
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24100 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-11 04:59:38 +00:00
Love Hörnquist Åstrand
01720d42b1 free on error cid#68
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24099 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-11 04:59:28 +00:00
Love Hörnquist Åstrand
a222d53b7f free utf8 string on failure, cid#87
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24098 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-11 04:59:18 +00:00
Love Hörnquist Åstrand
2edb783bf7 check NULL pointer before use, cid#137, 136, 135
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24097 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-11 04:59:08 +00:00
Love Hörnquist Åstrand
46d54811be init count before use, coverity #150
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24096 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-11 04:58:58 +00:00
Love Hörnquist Åstrand
bedf5bc77e init content before use coverity #146
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24095 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-11 04:58:48 +00:00
Love Hörnquist Åstrand
c5ff97dc5b init content before use coverity #147
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24094 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-11 04:58:38 +00:00
Love Hörnquist Åstrand
f964fe1beb init content before use coverity #148
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24093 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-11 04:58:28 +00:00
Love Hörnquist Åstrand
d24b24e07e init content before use coverity #149
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24092 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-11 04:58:18 +00:00
Love Hörnquist Åstrand
e20ab9787f avoid double free, coverity #153
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24091 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-11 04:58:08 +00:00
Love Hörnquist Åstrand
dd23f4a8a9 free name on error, from coverity #115
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24090 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-11 04:57:58 +00:00
Love Hörnquist Åstrand
a40d246195 simplify CMS handling, coverity #158
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24089 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-11 04:57:40 +00:00
Love Hörnquist Åstrand
ad71a4584b remove const-ness to please coverity
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24088 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-11 04:57:25 +00:00
Love Hörnquist Åstrand
4fd6aad19a include krb5_locl.h only, no need to pull in krb5.h twice
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24087 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-11 04:57:09 +00:00
Love Hörnquist Åstrand
7592a925b5 avoid strndup since it doesnt do what we expect on aix
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24086 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-11 04:56:54 +00:00
Love Hörnquist Åstrand
b27e9cbb2e use krb5_data_alloc to allocate memory
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24085 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-11 04:56:35 +00:00