Skip to content
Commit 6faffd0a authored by Richard Levitte's avatar Richard Levitte
Browse files

Better workaround for VMS getnameinfo() bug



The actual bug with current getnameinfo() on VMS is not that it puts
gibberish in the service buffer, but that it doesn't touch it at all.
The gibberish we dealt with before was simply stuff that happened to
be on the stack.

It's better to initialise the service buffer properly (with the empty
string) and check if it's still an empty string after the
getnameinfo() call, and fill it with the direct numerical translation
of the raw port if that's the case.

Reviewed-by: default avatarRich Salz <rsalz@openssl.org>
parent c680f77f
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment