summaryrefslogtreecommitdiffstats
path: root/net/djbdns/patches/070-dnscache-dpos-tcp-servfail.patch
blob: 8d30d5e7434a801f581fc891e32bd8ce1de86e22 (plain)
1
2
3
4
5
6
7
8
9
10
--- a/dns_transmit.c
+++ b/dns_transmit.c
@@ -166,6 +166,7 @@ static int thistcp(struct dns_transmit *
       taia_uint(&d->deadline,10);
       taia_add(&d->deadline,&d->deadline,&now);
       if (socket_connect4(d->s1 - 1,ip,53) == 0) {
+        d->pos = 0;
         d->tcpstate = 2;
         return 0;
       }