Project

General

Profile

Bug #2609

network.c can fail to compile (1.4.35)

Added by citaylor over 2 years ago. Updated over 2 years ago.

Status:
Fixed
Priority:
Normal
Assignee:
-
Category:
core
Target version:
Start date:
2015-01-13
Due date:
% Done:

100%

Missing in 1.5.x:

Description

network.c from 1.4.35 fails to compile on HP-UX 11.00 if SUN_LEN isnt defined. Line 366 tries to access "hostlen", but the variable is no longer in context (11 lines previously).

Associated revisions

Revision b0a632f2 (diff)
Added by stbuehler over 2 years ago

[network] fix compile break in calculation of sockaddr_un size if SUN_LEN is not defined (fixes #2609)

From: Stefan Bühler <>

git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2972 152afb58-edef-0310-8abb-c4023f1b3aa9

Revision 2972 (diff)
Added by stbuehler over 2 years ago

[network] fix compile break in calculation of sockaddr_un size if SUN_LEN is not defined (fixes #2609)

From: Stefan Bühler <>

History

#1 Updated by stbuehler over 2 years ago

  • Target version changed from 1.4.x to 1.4.36

Hi, thx for reporting this.

Could you test whether the commit http://git.lighttpd.net/lighttpd/lighttpd-1.x.git/commit/?h=lighttpd-1.4.x-stbuehler fixes your problem?

#2 Updated by citaylor over 2 years ago

Thanks for your prompt response...
It does indeed solve the compilation issue, thanks.
I cannot comment on whether it affects functionality as I am not in a position to test this code path.

#3 Updated by Gillingham over 2 years ago

Confirming this bug also exists when compiling on Solaris 10 (SunOS 5.10 Generic_141414-08 sun4u sparc SUNW,A70).

I applied the patch mentioned and was able to successfully compile here as well.

#4 Updated by stbuehler over 2 years ago

  • Status changed from New to Fixed
  • % Done changed from 0 to 100

Applied in changeset r2972.

Also available in: Atom