diff options
author | Dirk Meyer <dinoex@FreeBSD.org> | 2016-03-19 09:38:14 +0000 |
---|---|---|
committer | Dirk Meyer <dinoex@FreeBSD.org> | 2016-03-19 09:38:14 +0000 |
commit | 7680f149802966f69d79b642ee09e5c3a6e8e466 (patch) | |
tree | f0fca7a7389c370a555a8f427d22bf69893ccb9c /www/lighttpd | |
parent | 04bee019743548a41cf84143f017196b1e391ffc (diff) | |
download | ports-7680f149802966f69d79b642ee09e5c3a6e8e466.tar.gz ports-7680f149802966f69d79b642ee09e5c3a6e8e466.zip |
Notes
Diffstat (limited to 'www/lighttpd')
-rw-r--r-- | www/lighttpd/files/extra-patch-mysqlauth | 5 |
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; + |