From a11bc41a2516810f91e3e3d71d8127664d0b1e73 Mon Sep 17 00:00:00 2001 From: Greg Hudson Date: Fri, 3 Sep 2010 22:21:39 +0000 Subject: [PATCH] Prevent a double free in k5_pwqual_load() git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@24288 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/kadm5/srv/pwqual.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/kadm5/srv/pwqual.c b/src/lib/kadm5/srv/pwqual.c index 646bfcb3c..3e728a480 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; -- 2.26.2