diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2022-10-07 16:49:48 +0000 |
---|---|---|
committer | Laurent Bercot <ska@appnovation.com> | 2022-10-07 16:49:48 +0000 |
commit | 4352576564a34de1d727be83ce8fcc9e5c7a87ff (patch) | |
tree | c7f2687fb81a68a3f07cff19981f29939393e11e /src/libs6dns/s6dns_engine.c | |
parent | 4d081d9c2657ef40e770145f21328d37035dd774 (diff) | |
download | s6-dns-4352576564a34de1d727be83ce8fcc9e5c7a87ff.tar.xz |
bugfix: adapt to new allread() API
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/libs6dns/s6dns_engine.c')
-rw-r--r-- | src/libs6dns/s6dns_engine.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libs6dns/s6dns_engine.c b/src/libs6dns/s6dns_engine.c index 10f588c..8c99194 100644 --- a/src/libs6dns/s6dns_engine.c +++ b/src/libs6dns/s6dns_engine.c @@ -84,7 +84,9 @@ static int s6dns_mininetstring_read (int fd, stralloc *sa, uint32_t *w) *w &= ~(1U << 30) ; } { - size_t r = allread(fd, sa->s + sa->len, *w) ; + size_t r ; + errno = EPIPE ; + r = allread(fd, sa->s + sa->len, *w) ; sa->len += r ; *w -= r ; } return *w ? -1 : 1 ; |