chiark
/
gitweb
/
~ianmdlvl
/
adns.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a2d3f19
)
consistency: Call adns__intdone_process in adns_afterpoll
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Thu, 8 Dec 2016 19:32:37 +0000
(19:32 +0000)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Tue, 26 May 2020 19:24:04 +0000
(20:24 +0100)
This avoids crashes if consistency checking is turned on.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
src/poll.c
patch
|
blob
|
history
diff --git
a/src/poll.c
b/src/poll.c
index 75bc19219ff705548785ded29bb430cd5a7d2fcc..917a524344d76832ad21f87c0c7431d7f503c3e3 100644
(file)
--- a/
src/poll.c
+++ b/
src/poll.c
@@
-89,6
+89,7
@@
void adns_afterpoll(adns_state ads, const struct pollfd *fds, int nfds,
adns__must_gettimeofday(ads,&now,&tv_buf);
if (now) {
adns__timeouts(ads, 1, 0,0, *now);
+ adns__intdone_process(ads); /* fdevents calls adns_processwriteable */
adns__fdevents(ads, fds,nfds, 0,0,0,0, *now,0);
}
adns__returning(ads,0);