Bug 207555 - [PATCH] www/lighttpd fix crashes with option MYSQLAUTH
Summary: [PATCH] www/lighttpd fix crashes with option MYSQLAUTH
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2016-02-28 09:46 UTC by Dirk Meyer
Modified: 2016-03-19 09:41 UTC (History)
0 users

See Also:
dinoex: maintainer-feedback-


Attachments
Patch to extend extra-patch-mysqlauth (868 bytes, patch)
2016-02-28 09:46 UTC, Dirk Meyer
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.