summaryrefslogtreecommitdiff
path: root/src/mod_authn_pam.c
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2019-11-19 03:39:40 -0500
committerGlenn Strauss <gstrauss@gluelogic.com>2020-07-08 18:08:51 -0400
commitb73949e03f72349b2ce90276d275487044e26c67 (patch)
tree035b3ba71163196ff81497bd2734840294545c50 /src/mod_authn_pam.c
parentea75c0b87dc83892cca621655c22d8ff93540443 (diff)
downloadlighttpd-git-b73949e03f72349b2ce90276d275487044e26c67.tar.gz
[multiple] plugin.c handles common FREE_FUNC code
(simpler for modules; less boilerplate to cut-n-paste)
Diffstat (limited to 'src/mod_authn_pam.c')
-rw-r--r--src/mod_authn_pam.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/mod_authn_pam.c b/src/mod_authn_pam.c
index 61925e80..6ffb725b 100644
--- a/src/mod_authn_pam.c
+++ b/src/mod_authn_pam.c
@@ -45,16 +45,6 @@ INIT_FUNC(mod_authn_pam_init) {
return p;
}
-FREE_FUNC(mod_authn_pam_free) {
- plugin_data *p = p_d;
- if (!p) return HANDLER_GO_ON;
-
- free(p->cvlist);
- free(p);
- UNUSED(srv);
- return HANDLER_GO_ON;
-}
-
static void mod_authn_pam_merge_config_cpv(plugin_config * const pconf, const config_plugin_value_t * const cpv) {
switch (cpv->k_id) { /* index into static config_plugin_keys_t cpk[] */
case 0: /* auth.backend.pam.opts */
@@ -177,7 +167,6 @@ int mod_authn_pam_plugin_init(plugin *p) {
p->version = LIGHTTPD_VERSION_ID;
p->name = "authn_pam";
p->init = mod_authn_pam_init;
- p->cleanup = mod_authn_pam_free;
p->set_defaults= mod_authn_pam_set_defaults;
return 0;