diff options
author | Pawel Jakub Dawidek <pjd@FreeBSD.org> | 2013-03-14 23:03:48 +0000 |
---|---|---|
committer | Pawel Jakub Dawidek <pjd@FreeBSD.org> | 2013-03-14 23:03:48 +0000 |
commit | 9bb2b7f535b94558bb57bb9403d070da6ffdb335 (patch) | |
tree | e0b421ec15ea73359f2f6708d71a3da4c1c8b6d6 /sbin | |
parent | 5632176c77b95d0a9c2e751fcac534f0e59fa035 (diff) | |
download | src-9bb2b7f535b94558bb57bb9403d070da6ffdb335.tar.gz src-9bb2b7f535b94558bb57bb9403d070da6ffdb335.zip |
Notes
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/hastd/secondary.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/hastd/secondary.c b/sbin/hastd/secondary.c index febdc05b42e6..c0c67c6ee43e 100644 --- a/sbin/hastd/secondary.c +++ b/sbin/hastd/secondary.c @@ -582,7 +582,7 @@ requnpack(struct hast_resource *res, struct hio *hio, struct nv *nv) hio->hio_error = EINVAL; goto end; } - if (hio->hio_length > MAXPHYS) { + if (hio->hio_cmd != HIO_DELETE && hio->hio_length > MAXPHYS) { pjdlog_error("Data length is too large (%ju > %ju).", (uintmax_t)hio->hio_length, (uintmax_t)MAXPHYS); hio->hio_error = EINVAL; |