aboutsummaryrefslogtreecommitdiff
path: root/www/lighttpd/files/extra-patch-mysqlauth
diff options
context:
space:
mode:
Diffstat (limited to 'www/lighttpd/files/extra-patch-mysqlauth')
-rw-r--r--www/lighttpd/files/extra-patch-mysqlauth5
1 files changed, 4 insertions, 1 deletions
diff --git a/www/lighttpd/files/extra-patch-mysqlauth b/www/lighttpd/files/extra-patch-mysqlauth
index 97a53c079548..a6bd49ae679b 100644
--- a/www/lighttpd/files/extra-patch-mysqlauth
+++ b/www/lighttpd/files/extra-patch-mysqlauth
@@ -424,13 +424,16 @@ diff -Naur new/lighttpd-1.4.23/src/mod_auth.c old/lighttpd-1.4.23/src/mod_auth.c
} else {
log_error_write(srv, __FILE__, __LINE__, "sb", "auth.backend not supported:", s->auth_backend_conf);
-@@ -534,6 +637,28 @@
+@@ -534,6 +637,31 @@
return (ret);
break;
}
+ case AUTH_BACKEND_MYSQL: {
+ int port = atoi(s->auth_mysql_port->ptr);
+
++ /* ignore if auth_mysql_socket is invalid */
++ if (p->conf.auth_mysql_socket == NULL)
++ return HANDLER_GO_ON;
+ if (p->conf.auth_mysql_socket->ptr != NULL)
+ if (0 == strcmp(s->auth_mysql_socket->ptr, "")) s->auth_mysql_socket->ptr = NULL;
+