View | Details | Raw Unified | Return to bug 207555
Collapse All | Expand All

(-)../lighttpd-mysqlauth/files/extra-patch-mysqlauth (-1 / +4 lines)
Lines 424-436 Link Here
424
 			} else {
424
 			} else {
425
 				log_error_write(srv, __FILE__, __LINE__, "sb", "auth.backend not supported:", s->auth_backend_conf);
425
 				log_error_write(srv, __FILE__, __LINE__, "sb", "auth.backend not supported:", s->auth_backend_conf);
426
 
426
 
427
@@ -534,6 +637,28 @@
427
@@ -534,6 +637,31 @@
428
 				return (ret);
428
 				return (ret);
429
 			break;
429
 			break;
430
 		}
430
 		}
431
+               case AUTH_BACKEND_MYSQL: {
431
+               case AUTH_BACKEND_MYSQL: {
432
+                       int port = atoi(s->auth_mysql_port->ptr);
432
+                       int port = atoi(s->auth_mysql_port->ptr);
433
+
433
+
434
+                       /* ignore if auth_mysql_socket is invalid */
435
+                       if (p->conf.auth_mysql_socket == NULL)
436
+                           return HANDLER_GO_ON;
434
+                       if (p->conf.auth_mysql_socket->ptr != NULL)
437
+                       if (p->conf.auth_mysql_socket->ptr != NULL)
435
+                           if (0 == strcmp(s->auth_mysql_socket->ptr, "")) s->auth_mysql_socket->ptr = NULL;
438
+                           if (0 == strcmp(s->auth_mysql_socket->ptr, "")) s->auth_mysql_socket->ptr = NULL;
436
+
439
+

Return to bug 207555