Bug 207555

Summary: [PATCH] www/lighttpd fix crashes with option MYSQLAUTH
Product: Ports & Packages Reporter: Dirk Meyer <dinoex>
Component: Individual Port(s)Assignee: freebsd-ports-bugs (Nobody) <ports-bugs>
Status: Closed FIXED    
Severity: Affects Some People Keywords: patch
Priority: --- Flags: dinoex: maintainer-feedback-
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
Patch to extend extra-patch-mysqlauth none

Description Dirk Meyer freebsd_committer freebsd_triage 2016-02-28 09:46:43 UTC
Created attachment 167505 [details]
Patch to extend extra-patch-mysqlauth

lighttpd 1.4.35_5 worked.
after upgrading lighttpd crashes after start, no messages in log.

After debuging I found it calls the Auth-Module very early now,
before the handle is initilized.

with a modified patch 1.4.39_1 is now working again.

I inserted:
         /* ignore if auth_mysql_socket is invalid */
         if (p->conf.auth_mysql_socket == NULL)
             return HANDLER_GO_ON;

This fixed the crash on start,
and http basic auth is working with the database.
Comment 1 Bugzilla Automation freebsd_committer freebsd_triage 2016-02-28 09:46:43 UTC
Maintainer informed via mail
Comment 2 commit-hook freebsd_committer freebsd_triage 2016-03-19 09:38:36 UTC
A commit references this bug:

Author: dinoex
Date: Sat Mar 19 09:38:15 UTC 2016
New revision: 411385
URL: https://svnweb.freebsd.org/changeset/ports/411385

Log:
  - fix crashes with option MYSQLAUTH
  PR:		207555
  Approved by:	(maintiner timeout)

Changes:
  head/www/lighttpd/files/extra-patch-mysqlauth
Comment 3 Dirk Meyer freebsd_committer freebsd_triage 2016-03-19 09:40:53 UTC
Tested with mysql-server started/stopped.