diff options
author | 2004-03-24 17:05:48 +0000 | |
---|---|---|
committer | 2004-03-24 17:05:48 +0000 | |
commit | 1a01e38b1afad4e791b77503dd42f2a09d03c100 (patch) | |
tree | 7c83865f10be9a05bf9044bdcbde32e2762a9a71 /sys/lib | |
parent | Add some notes about privsep to manpage. (diff) | |
download | wireguard-openbsd-1a01e38b1afad4e791b77503dd42f2a09d03c100.tar.xz wireguard-openbsd-1a01e38b1afad4e791b77503dd42f2a09d03c100.zip |
Do not check for writing to address zero on vax, since this is where
we want to be able to load a .gz kernel.
ok deraadt@
Diffstat (limited to 'sys/lib')
-rw-r--r-- | sys/lib/libz/inflate.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/lib/libz/inflate.c b/sys/lib/libz/inflate.c index 61ed2726416..9ad0ef0baad 100644 --- a/sys/lib/libz/inflate.c +++ b/sys/lib/libz/inflate.c @@ -1,4 +1,4 @@ -/* $OpenBSD: inflate.c,v 1.9 2003/12/16 23:58:30 millert Exp $ */ +/* $OpenBSD: inflate.c,v 1.10 2004/03/24 17:05:48 miod Exp $ */ /* inflate.c -- zlib decompression * Copyright (C) 1995-2003 Mark Adler * For conditions of distribution and use, see copyright notice in zlib.h @@ -555,7 +555,10 @@ int flush; static const unsigned short order[19] = /* permutation of code lengths */ {16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15}; - if (strm == Z_NULL || strm->state == Z_NULL || strm->next_out == Z_NULL || + if (strm == Z_NULL || strm->state == Z_NULL || +#ifndef __vax__ + strm->next_out == Z_NULL || +#endif (strm->next_in == Z_NULL && strm->avail_in != 0)) return Z_STREAM_ERROR; |