Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Unguarded reference to AF_INET6 in lib/connect.c #6069

@tgc

Description

@tgc

There is an unguarded use of AF_INET6 in lib/connect.c:

conn->tempfamily[1] = conn->tempfamily[0] == AF_INET6 ?

It prevented curl 7.72.0 from building out of the box on Solaris 2.6 as it has no IPv6 support.
After a quick workaround of replacing AF_INET6 with AF_INET the build completed.

Test results after workaround:
TESTDONE: 1103 tests out of 1106 reported OK: 99%
TESTFAIL: These test cases failed: 1700 1701 1702
TESTDONE: 1374 tests were considered during 660 seconds.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions