mirror of
https://repo.or.cz/socat.git
synced 2025-07-17 16:43:24 +00:00
Failing name resolution could lead to SIGSEGV
This commit is contained in:
parent
6b596b8852
commit
1de74d4ca9
3 changed files with 6 additions and 2 deletions
3
xio-ip.c
3
xio-ip.c
|
@ -239,7 +239,8 @@ int xiogetaddrinfo(const char *node, const char *service,
|
|||
|
||||
if ((error_num = Getaddrinfo(node, service, &hints, &res)) != 0) {
|
||||
Error7("getaddrinfo(\"%s\", \"%s\", {%d,%d,%d,%d}, {}): %s",
|
||||
node, service, hints.ai_flags, hints.ai_family,
|
||||
node?node:"NULL", service?service:"NULL",
|
||||
hints.ai_flags, hints.ai_family,
|
||||
hints.ai_socktype, hints.ai_protocol,
|
||||
(error_num == EAI_SYSTEM)?
|
||||
strerror(errno):gai_strerror(error_num));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue