From 9c0d3aa37810ae37b82951986fb4170c39fc9c41 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Mon, 30 Mar 2015 00:57:48 +0000 Subject: - Bugfix: s6-tcpclient and s6-tcpserver-access didn't s6dns_init() - Version: rc for 2.1.0.1 --- src/conn-tools/s6-tcpserver-access.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/conn-tools/s6-tcpserver-access.c') diff --git a/src/conn-tools/s6-tcpserver-access.c b/src/conn-tools/s6-tcpserver-access.c index db2e2a5..2e14845 100644 --- a/src/conn-tools/s6-tcpserver-access.c +++ b/src/conn-tools/s6-tcpserver-access.c @@ -239,10 +239,20 @@ int main (int argc, char const *const *argv, char const *const *envp) byte_copy(tcpremotehost, protolen, proto) ; byte_copy(tcpremotehost + protolen, 11, "REMOTEHOST") ; + if (!s6dns_init()) + { + if (verbosity >= 2) strerr_warnwu1sys("init DNS") ; + if (flagfatal) + { + e = 111 ; + goto reject ; + } + } if (localname) { if (!env_addmodif(&modifs, tcplocalhost, localname)) dienomem() ; } + else { s6dns_domain_arpafromip46(&blob[0].q, &localip) ; s6dns_domain_encode(&blob[0].q) ; -- cgit v1.2.3