summaryrefslogtreecommitdiff
path: root/src/mod_authn_mysql.c
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2017-01-24 16:14:56 -0500
committerGlenn Strauss <gstrauss@gluelogic.com>2017-01-31 14:40:05 -0500
commitfb8057707c504888794e3092624982500592b061 (patch)
tree8b5e260aabf5f171952ff9eb63516376b425e558 /src/mod_authn_mysql.c
parent6c1e6e660e97318ed10360002130f03ffbc4a6ae (diff)
downloadlighttpd-git-fb8057707c504888794e3092624982500592b061.tar.gz
[mod_authn_mysql] fix minor memleak at shutdown
Diffstat (limited to 'src/mod_authn_mysql.c')
-rw-r--r--src/mod_authn_mysql.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mod_authn_mysql.c b/src/mod_authn_mysql.c
index 10f90586..e712c3f4 100644
--- a/src/mod_authn_mysql.c
+++ b/src/mod_authn_mysql.c
@@ -258,13 +258,13 @@ SETDEFAULTS_FUNC(mod_authn_mysql_set_defaults) {
if (p->config_storage[0]) { /*(always true)*/
plugin_config *s = p->config_storage[0];
if (buffer_is_empty(s->auth_mysql_col_user)) {
- s->auth_mysql_col_user = buffer_init_string("user");
+ buffer_copy_string_len(s->auth_mysql_col_user, CONST_STR_LEN("user"));
}
if (buffer_is_empty(s->auth_mysql_col_pass)) {
- s->auth_mysql_col_pass = buffer_init_string("password");
+ buffer_copy_string_len(s->auth_mysql_col_pass, CONST_STR_LEN("password"));
}
if (buffer_is_empty(s->auth_mysql_col_realm)) {
- s->auth_mysql_col_realm = buffer_init_string("realm");
+ buffer_copy_string_len(s->auth_mysql_col_realm, CONST_STR_LEN("realm"));
}
}