diff options
author | Greg Hudson <ghudson@mit.edu> | 2010-09-03 22:21:39 +0000 |
---|---|---|
committer | Greg Hudson <ghudson@mit.edu> | 2010-09-03 22:21:39 +0000 |
commit | a11bc41a2516810f91e3e3d71d8127664d0b1e73 (patch) | |
tree | 5a77e6894cb5f1812f30a233da4176d2b5003df4 | |
parent | 7981e0a3657d2573dde10fb9cca194ceabd23d4a (diff) | |
download | krb5-a11bc41a2516810f91e3e3d71d8127664d0b1e73.zip krb5-a11bc41a2516810f91e3e3d71d8127664d0b1e73.tar.gz krb5-a11bc41a2516810f91e3e3d71d8127664d0b1e73.tar.bz2 |
Prevent a double free in k5_pwqual_load()
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@24288 dc483132-0cff-0310-8789-dd5450dbe970
-rw-r--r-- | src/lib/kadm5/srv/pwqual.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/kadm5/srv/pwqual.c b/src/lib/kadm5/srv/pwqual.c index 646bfcb..3e728a4 100644 --- a/src/lib/kadm5/srv/pwqual.c +++ b/src/lib/kadm5/srv/pwqual.c @@ -66,6 +66,7 @@ k5_pwqual_load(krb5_context context, pwqual_handle **handles, ret = (*mod)(context, 1, 1, (krb5_plugin_vtable)&handle->vt); if (ret != 0) { /* Failed vtable init is non-fatal. */ free(handle); + handle = NULL; continue; } handle->data = NULL; |