chiark / gitweb /
Correct fix for infinite timeouts.
authorian <ian>
Fri, 15 Oct 1999 17:20:09 +0000 (17:20 +0000)
committerian <ian>
Fri, 15 Oct 1999 17:20:09 +0000 (17:20 +0000)
src/event.c

index b3f71dd72c5149c5ba4dfe9ad92964c8f7c0111a..e3f72a409c731e37b192007f60afe2cc868a29b4 100644 (file)
@@ -184,9 +184,9 @@ void adns__timeouts(adns_state ads, int act,
       inter_maxtoabs(tv_io,tvbuf,now,qu->timeout);
     } else {
       if (!act) {
-       tvbuf.tv_sec= 0;
-       tvbuf.tv_usec= 0;
-       *tv_io= &tvbuf;
+       tvbuf->tv_sec= 0;
+       tvbuf->tv_usec= 0;
+       *tv_io= tvbuf;
        return;
       }
       LIST_UNLINK(ads->timew,qu);