diff options
author | Sebastian Benoit <benno@cvs.openbsd.org> | 2019-11-29 01:46:47 +0000 |
---|---|---|
committer | Sebastian Benoit <benno@cvs.openbsd.org> | 2019-11-29 01:46:47 +0000 |
commit | 60d426c45cd7bb2d26136e60f765348d44135607 (patch) | |
tree | 03aaa67c96b68b309210b6aec982e7699b6849e5 /usr.sbin | |
parent | 0b59bf4f6c8782d64f89909fbd91c8a10aa85b5a (diff) |
fix io_simple_read() change from earlier 'fix warnings' commit
found by deraadt in most unfunny circumstances.
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/rpki-client/io.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/rpki-client/io.c b/usr.sbin/rpki-client/io.c index c7186765bfc..e62891f3128 100644 --- a/usr.sbin/rpki-client/io.c +++ b/usr.sbin/rpki-client/io.c @@ -1,4 +1,4 @@ -/* $OpenBSD: io.c,v 1.6 2019/11/28 21:12:00 benno Exp $ */ +/* $OpenBSD: io.c,v 1.7 2019/11/29 01:46:46 benno Exp $ */ /* * Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv> * @@ -147,7 +147,7 @@ io_simple_read(int fd, void *res, size_t sz) again: if (sz == 0) return; - if ((ssz = read(fd, res, sz)) == -1) + if ((ssz = read(fd, tmp, sz)) == -1) err(EXIT_FAILURE, "read"); else if (ssz == 0) errx(EXIT_FAILURE, "read: unexpected end of file"); |