Prevent a double free in k5_pwqual_load()
authorGreg Hudson <ghudson@mit.edu>
Fri, 3 Sep 2010 22:21:39 +0000 (22:21 +0000)
committerGreg Hudson <ghudson@mit.edu>
Fri, 3 Sep 2010 22:21:39 +0000 (22:21 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@24288 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/kadm5/srv/pwqual.c

index 646bfcb3c452c3c14ac94d5216356dabf5345b9b..3e728a4804f5f3f134681c994a75aae95fc71b25 100644 (file)
@@ -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;