summaryrefslogtreecommitdiffstats
path: root/src/kdc/kdc_authdata.c
diff options
context:
space:
mode:
authorGreg Hudson <ghudson@mit.edu>2008-11-03 19:47:40 +0000
committerGreg Hudson <ghudson@mit.edu>2008-11-03 19:47:40 +0000
commit05ca118e24833244cb7b51da82720448baf12c99 (patch)
tree7156c1b21d73640d87826ba0a1566a7149e5c1c8 /src/kdc/kdc_authdata.c
parentb093fb36e64edf461a560926b9cac9c4fc5a07d9 (diff)
downloadkrb5-05ca118e24833244cb7b51da82720448baf12c99.tar.gz
krb5-05ca118e24833244cb7b51da82720448baf12c99.tar.xz
krb5-05ca118e24833244cb7b51da82720448baf12c99.zip
Apply a patch from Apple to correct a few memory leaks
ticket: 6201 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20958 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/kdc/kdc_authdata.c')
-rw-r--r--src/kdc/kdc_authdata.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/kdc/kdc_authdata.c b/src/kdc/kdc_authdata.c
index a8f9241ea8..9fd37f2d6b 100644
--- a/src/kdc/kdc_authdata.c
+++ b/src/kdc/kdc_authdata.c
@@ -140,20 +140,17 @@ static struct plugin_dir_handle authdata_plugins;
krb5_error_code
load_authdata_plugins(krb5_context context)
{
- struct errinfo err;
void **authdata_plugins_ftables = NULL;
struct krb5plugin_authdata_ftable_v0 *ftable = NULL;
size_t module_count;
int i, k;
init_proc server_init_proc = NULL;
- memset(&err, 0, sizeof(err));
-
/* Attempt to load all of the authdata plugins we can find. */
PLUGIN_DIR_INIT(&authdata_plugins);
if (PLUGIN_DIR_OPEN(&authdata_plugins) == 0) {
if (krb5int_open_plugin_dirs(objdirs, NULL,
- &authdata_plugins, &err) != 0) {
+ &authdata_plugins, &context->err) != 0) {
return KRB5_PLUGIN_NO_HANDLE;
}
}
@@ -163,7 +160,7 @@ load_authdata_plugins(krb5_context context)
n_authdata_systems = 0;
if (krb5int_get_plugin_dir_data(&authdata_plugins,
"authdata_server_0",
- &authdata_plugins_ftables, &err) != 0) {
+ &authdata_plugins_ftables, &context->err) != 0) {
return KRB5_PLUGIN_NO_HANDLE;
}