mirror of
https://repo.or.cz/socat.git
synced 2025-07-11 22:23:24 +00:00
New option bind-tempname for parallel UNIX domain SENDTO clients
This commit is contained in:
parent
8641344c73
commit
b2914a0cf3
17 changed files with 551 additions and 86 deletions
4
xio-ip.c
4
xio-ip.c
|
@ -244,7 +244,7 @@ int xiogetaddrinfo(const char *node, const char *service,
|
|||
}
|
||||
if (error_num == EAI_SERVICE && protocol != 0) {
|
||||
if (hints.ai_protocol == 0) {
|
||||
Error7("getaddrinfo\"%s\", \"%s\", {0x%02x,%d,%d,%d}, {}): %s",
|
||||
Error7("getaddrinfo(\"%s\", \"%s\", {0x%02x,%d,%d,%d}, {}): %s",
|
||||
node?node:"NULL", service?service:"NULL",
|
||||
hints.ai_flags, hints.ai_family,
|
||||
hints.ai_socktype, hints.ai_protocol,
|
||||
|
@ -438,7 +438,7 @@ int xioresolve(const char *node, const char *service,
|
|||
}
|
||||
|
||||
aip = res;
|
||||
if (ai_flags[0] & AI_PASSIVE && family == PF_UNSPEC) {
|
||||
if (ai_flags != NULL && ai_flags[0] & AI_PASSIVE && family == PF_UNSPEC) {
|
||||
/* We select the first IPv6 address, if available,
|
||||
because this might accept IPv4 connections too */
|
||||
while (aip != NULL) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue