From nobody Tue May 9 19:57:37 2023 X-Original-To: ports-bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4QG88L3Kk5z49QSh for ; Tue, 9 May 2023 19:57:38 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QG88L106cz4QbD for ; Tue, 9 May 2023 19:57:38 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1683662258; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=XM5iCZXqOkmH1VM2ExARvgaVdZwLudtCPqypKZXsU0c=; b=PDyQF6U4pR9Yd8KR05VZWPWyUuHTv3lN6O9rTjHNNPKMIoHPgISYT5m6V4OKdVSVgXZYr8 p2uOPlBMo21aFDAYu0EndWPIh3cYtyQWOJfiZiKRP/FwYHe29QXdLCKLQ+cJ2rRKn80mPW 7vh18Y+2KrRNnzo7sqzYwoV4KDFFx5P6oF0mge0JW0shW0PtCLlFwgQIk3PvmzEuV38hL3 XDGRnxkmnKIW3FHyaARbqpIuEEF4LZBDogpnAxEs6Nwus4hAZllq9kaaxOS3pJ8XPnMCSY pSOW7Vl9Vebw9Y3bkKRCw1EwDnS4SVhWF5nk4P6ZIs6pwXetP15xwhXbmBGSoA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1683662258; a=rsa-sha256; cv=none; b=XQfXvl64JYWoAI2GhfW2TgjpOm5kzEoPpAxnN5oEbKjaBK29XRVK5z6w2wuZG75ydCmgXB TvUIl/12znrChFmDM9J63lrJ007KJJel4I86Cgsz0+Z6qSIUjfH/pc0Zs8SSRruUX3qMKl IQo77i7eMi4Vki0P2C9zkEflVA3dIV9bPBrEEhncvxtKTRG+FeQ7nakitfLrFYKXa3bTn7 j4fbclLvDwvDWBsvTbkeUfC5BjNVfWCwb4fLOsWSRibw0AmDm8MyYHi1sqGCPQTNHbjqUl yVleIlhtjRFP0/+7i2rGFHndBeXwXB+9lv1DJn7M99BbuK6/I/qDPRmeFutiYg== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4QG88K718kzhCt for ; Tue, 9 May 2023 19:57:37 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 349Jvbav074609 for ; Tue, 9 May 2023 19:57:37 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 349Jvb0p074608 for ports-bugs@FreeBSD.org; Tue, 9 May 2023 19:57:37 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 271335] www/lighttpd: fix listening on IPv6 and IPv4 addresses Date: Tue, 09 May 2023 19:57:37 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: rcm@rcm.sh X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: pkubaj@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D271335 Bug ID: 271335 Summary: www/lighttpd: fix listening on IPv6 and IPv4 addresses Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: pkubaj@FreeBSD.org Reporter: rcm@rcm.sh Assignee: pkubaj@FreeBSD.org Flags: maintainer-feedback?(pkubaj@FreeBSD.org) Created attachment 242082 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D242082&action= =3Dedit www/lighttpd: fix listening on IPv6 addresses getaddrinfo was changed recently to (re)introduce EAI_NODATA and EAI_ADDRFA= MILY error cases. These are non-standard error cases with differing semantics ac= ross different libc implementations. BSD libc returns EAI_ADDRFAMILY as being synonymous with the nsdispatch error case of similar name NS_ADDRFAMILY. However, GNU libc uses EAI_ADDRFAMILY to report trying to resolve an IPv4 address with an IPv6 hint and vice-versa. lighttpd abuses this error case by assuming each listen address is first an IPv6 address, falling through to trying IPv4 on error. On systems that defi= ne EAI_ADDRFAMILY, the return code is tested to be EAI_ADDRFAMILY before attempting the IPv4 lookup. On platforms that don't define EAI_ADDRFAMILY, = this additional test is skipped. This patch undefines EAI_ADDRFAMILY. --=20 You are receiving this mail because: You are the assignee for the bug.=