diff options
Diffstat (limited to 'usr.sbin/mtree/crc.c')
-rw-r--r-- | usr.sbin/mtree/crc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/mtree/crc.c b/usr.sbin/mtree/crc.c index c33b8ac061b..7098c0a7e50 100644 --- a/usr.sbin/mtree/crc.c +++ b/usr.sbin/mtree/crc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: crc.c,v 1.3 2009/10/27 23:59:53 deraadt Exp $ */ +/* $OpenBSD: crc.c,v 1.4 2019/06/28 13:32:49 deraadt Exp $ */ /* $NetBSD: crc.c,v 1.7 1996/02/27 21:29:53 jtc Exp $ */ /*- @@ -118,7 +118,7 @@ crc(int fd, u_int32_t *cval, u_int32_t *clen) COMPUTE(crc, *p); COMPUTE(crc_total, *p); } - if (nr < 0) + if (nr == -1) return (1); *clen = len; |