]> git.ipfire.org Git - thirdparty/pdns.git/commit
dnsdist: Add the TCP socket to the map only if the connection succeeds 4734/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Sun, 4 Dec 2016 20:09:37 +0000 (21:09 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Sun, 4 Dec 2016 20:11:01 +0000 (21:11 +0100)
commit5a99e22ff53f2151268c8923e04d73106e6f1cc0
tree95c2b12e2f4d0c77443cb508b3a3a71991745e80
parent7541e94655a251a5a79338cc7aec83a3c0476d72
dnsdist: Add the TCP socket to the map only if the connection succeeds

Otherwise we create a value-initialized (to 0) entry in the map and
try to use it later.
pdns/dnsdist-tcp.cc