diff options
author | 2003-07-31 20:35:10 +0000 | |
---|---|---|
committer | 2003-07-31 20:35:10 +0000 | |
commit | c74b805a0ccccb2d713d942e0f3b69507d8cf5ef (patch) | |
tree | 5dbc4c78311d496e0097f5756027a44a91551588 | |
parent | - Change the hash function to a simple multiplicative one. The old (diff) | |
download | wireguard-openbsd-c74b805a0ccccb2d713d942e0f3b69507d8cf5ef.tar.xz wireguard-openbsd-c74b805a0ccccb2d713d942e0f3b69507d8cf5ef.zip |
pasto; lha@stacken.kth.se
-rw-r--r-- | sys/crypto/criov.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/sys/crypto/criov.c b/sys/crypto/criov.c index 0aba3c544b0..fe9866fa61e 100644 --- a/sys/crypto/criov.c +++ b/sys/crypto/criov.c @@ -1,4 +1,4 @@ -/* $OpenBSD: criov.c,v 1.12 2003/06/03 15:51:28 deraadt Exp $ */ +/* $OpenBSD: criov.c,v 1.13 2003/07/31 20:35:10 markus Exp $ */ /* * Copyright (c) 1999 Theo de Raadt @@ -142,14 +142,15 @@ cuio_apply(struct uio *uio, int off, int len, unsigned int count; if (len < 0) - panic("%s: len %d < 0", __func__, len); + panic("cuio_apply: len %d < 0", len); if (off < 0) - panic("%s: off %d < 0", __func__, off); + panic("cuio_apply: off %d < 0", off); ind = 0; while (off > 0) { if (ind >= uio->uio_iovcnt) - panic("m_apply: null mbuf in skip"); + panic("cui_apply: ind %d >= uio_iovcnt %d for off", + ind, uio->uio_iovcnt); uiolen = uio->uio_iov[ind].iov_len; if (off < uiolen) break; @@ -158,7 +159,8 @@ cuio_apply(struct uio *uio, int off, int len, } while (len > 0) { if (ind >= uio->uio_iovcnt) - panic("m_apply: null mbuf"); + panic("cui_apply: ind %d >= uio_iovcnt %d for len", + ind, uio->uio_iovcnt); count = min(uio->uio_iov[ind].iov_len - off, len); rval = f(fstate, uio->uio_iov[ind].iov_base + off, count); |