summaryrefslogtreecommitdiff
path: root/src/libunixonacid
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2014-12-13 13:01:43 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2014-12-13 13:01:43 +0000
commita2b4cc9173db985699512c0954dd3a9b376f94c6 (patch)
tree66d5d48623ea7d3dc9fae899bf36ec363364dd20 /src/libunixonacid
parent63f93be2e696f233cf6fc04f2aab7821341794ab (diff)
downloadskalibs-a2b4cc9173db985699512c0954dd3a9b376f94c6.tar.xz
Fix initial value for the length of the kolbak_queue.
This was the reason for the s6-dnsname-filter segfault. It took me 2 days, valgrind and gdb to corner that one. >.>
Diffstat (limited to 'src/libunixonacid')
-rw-r--r--src/libunixonacid/timed_get.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libunixonacid/timed_get.c b/src/libunixonacid/timed_get.c
index 0a02382..1b4e420 100644
--- a/src/libunixonacid/timed_get.c
+++ b/src/libunixonacid/timed_get.c
@@ -15,8 +15,7 @@ int timed_get (void *b, initfunc_t *getfd, initfunc_t *get, tain_t const *deadli
{
r = iopause_stamp(&x, 1, deadline, stamp) ;
if (!r) return (errno = ETIMEDOUT, -1) ;
- else if (r > 0 && x.revents & (IOPAUSE_READ | IOPAUSE_EXCEPT))
- r = (*get)(b) ;
+ else if (r > 0 && x.revents & (IOPAUSE_READ | IOPAUSE_EXCEPT)) r = (*get)(b) ;
}
return unsanitize_read(r) ;
}