+ * ands_processany actually does something.
authorian <ian>
Tue, 12 Oct 1999 21:13:03 +0000 (21:13 +0000)
committerian <ian>
Tue, 12 Oct 1999 21:13:03 +0000 (21:13 +0000)
@@ -20,6 +20,7 @@
+  * ands_processany actually does something.

changelog
src/event.c

index f24e3c3..8925d12 100644 (file)
--- a/changelog
+++ b/changelog
@@ -20,6 +20,7 @@ adns (0.5) unstable; urgency=medium
   * adns_rr_hostaddr naddrs is -1 on temporary failure (as documented).
   * Reject TXT RRs with no strings.
   * Correct error messages for qname CNAME foo, foo CNAME bar.
+  * ands_processany actually does something.
   * Fixed typos in adns.h.
 
   General improvements:
index 6ddf492..9109469 100644 (file)
@@ -526,7 +526,7 @@ void adns_globalsystemfailure(adns_state ads) {
 }
 
 int adns_processany(adns_state ads) {
-  int r;
+  int r, i;
   struct timeval now;
   struct pollfd pollfds[MAX_POLLFDS];
   int npollfds;
@@ -541,6 +541,7 @@ int adns_processany(adns_state ads) {
    * likely just to want to do a read on one or two fds anyway.
    */
   npollfds= adns__pollfds(ads,pollfds);
+  for (i=0; i<npollfds; i++) pollfds[i].revents= pollfds[i].events;
   adns__fdevents(ads,
                 pollfds,npollfds,
                 0,0,0,0,