mirror of https://github.com/Chizi123/dnscomp.git

Joel Grunbaum
2020-10-23 7a2cec3945ba700c674f816d47f49060975b854d
main.c
@@ -113,7 +113,7 @@
         struct timespec run;
         run.tv_sec = -1; run.tv_nsec = 0;
         unsigned char buf[65536];
         for (int i = 0; i < 3 && run.tv_sec == -1; i++) {
         for (int j = 0; j < 3 && run.tv_sec == -1; j++) {
            run = resolve(buf, curr->server, dns->server, T_A);
         }
         if (run.tv_sec == -1) //if test has failed 3 times, set time taken to 3s as penalty