diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2023-12-12 17:01:07 +0000 |
---|---|---|
committer | Laurent Bercot <ska@appnovation.com> | 2023-12-12 17:01:07 +0000 |
commit | 9f697d6c1de2979cc5e0f3689d10086ceac8a672 (patch) | |
tree | 9db01eb20527d3328607bce9e68ccedbfd5916a5 /src/clock/s6-taiclock.c | |
parent | 9c4a097d900fb623abeb61d3a58cf58e9c5f383f (diff) | |
download | s6-networking-9f697d6c1de2979cc5e0f3689d10086ceac8a672.tar.xz |
Fix clock programs that recv46; fix s6-tcpserver-access exitcodes
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/clock/s6-taiclock.c')
-rw-r--r-- | src/clock/s6-taiclock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/clock/s6-taiclock.c b/src/clock/s6-taiclock.c index 1f0c399..353d767 100644 --- a/src/clock/s6-taiclock.c +++ b/src/clock/s6-taiclock.c @@ -37,7 +37,7 @@ int tain_exchange (int s, ip46 const *ip, uint16_t port, tain *serversays, tain r = socket_sendnb46_g(s, query, N, ip, port, deadline) ; if (r < 0) return 0 ; if (r < N) return (errno = EPIPE, 0) ; - r = socket_recvnb46_g(s, answer, N, &dummyip, &dummyport, deadline) ; + r = socket_recvnb46_g(s, answer, N, &dummyip, &dummyport, ip46_is6(ip), deadline) ; if (r < 0) return 0 ; if (r < N) return (errno = EPROTO, 0) ; if (memcmp(answer, "stai", 4)) return (errno = EPROTO, 0) ; |