Skip to content
Snippets Groups Projects
Commit 00b62968 authored by Martin Storsjö's avatar Martin Storsjö
Browse files

os_support: Don't try to return the service name as a string in getnameinfo


Some systems may be lacking getservbyport; the previous ifdef wasn't
quite enough since it still assumed that struct servent was defined,
as pointed out by Clément Gregoire.

Simply remove the possibility to return non-numeric services in
getnameinfo; no caller of getnameinfo within libavformat
currently try to use getnameinfo for retrieving the port number without
NI_NUMERICSERV, and falling back on getservbyport may be non-threadsafe.

Signed-off-by: default avatarMartin Storsjö <martin@martin.st>
parent 567ca142
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment