Bug 839031 - openssl s_server doesn't work on IPv4-only systems
openssl s_server doesn't work on IPv4-only systems
Product: Fedora
Classification: Fedora
Component: openssl (Show other bugs)
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Tomas Mraz
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2012-07-10 14:09 EDT by Miloslav Trmač
Modified: 2012-07-20 22:50 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2012-07-20 22:50:34 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Miloslav Trmač 2012-07-10 14:09:23 EDT
Version-Release number of selected component (if applicable):

Steps to Reproduce:
1. Check that (ip addr ls|grep inet6.*global) doesn't return anything
2. $ openssl s_server -accept 64000
> Using default temp DH parameters
> getaddrinfo: Name or service not known
>   0 items in the session cache
3. # ip addr add ::2/128 scope global dev lo
4. $ openssl s_server -accept 64000
Additional info:
With AI_ADDRCONFIG and no global IPv6 address, getaddrinfo(NULL, "64000", hints->ai_family==AF_INET6) does not resolve into an address (due to AI_ADDRCONFIG it only wants to return an IPv4 address); init_server() treats this as a fatal error and does not try IPv4 at all (nor does it manage to bind to ::1 in IPv6, which would accept both IPv4 and IPv6).

The loop in init_server() looks somewhat suspect, but that's just a vague notion, I _don't_ know for sure how this is supposed to be done correctly.  See #808147 for relevant discussion.
Comment 1 Fedora Update System 2012-07-12 06:13:08 EDT
openssl-1.0.0j-2.fc17 has been submitted as an update for Fedora 17.
Comment 2 Fedora Update System 2012-07-12 15:00:53 EDT
Package openssl-1.0.0j-2.fc17:
* should fix your issue,
* was pushed to the Fedora 17 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing openssl-1.0.0j-2.fc17'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).
Comment 3 Fedora Update System 2012-07-20 22:50:34 EDT
openssl-1.0.0j-2.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.

Note You need to log in before you can comment on or make changes to this bug.