summaryrefslogtreecommitdiff
path: root/usr
diff options
context:
space:
mode:
authorMike Christie <michaelc@cs.wisc.edu>2008-03-14 12:17:40 -0500
committerMike Christie <michaelc@cs.wisc.edu>2008-03-14 12:17:40 -0500
commitd02393ef50ff1ca0ea4fd196ecf1fb9aac34829d (patch)
tree41604d5a3ec0b41a6da42b819317d9e75438d896 /usr
parenta9dfab4b5ec29ca2ed4bb653f2c1a1de88756ef4 (diff)
downloadopen-iscsi-d02393ef50ff1ca0ea4fd196ecf1fb9aac34829d.tar.gz
Fix handling of data ending on segment boundaries
It is ok for the data to end right on the boundary, so we do not want to check for equal to.
Diffstat (limited to 'usr')
-rw-r--r--usr/io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/io.c b/usr/io.c
index 8591fce..357a8dd 100644
--- a/usr/io.c
+++ b/usr/io.c
@@ -774,7 +774,7 @@ iscsi_io_recv_pdu(iscsi_conn_t *conn, struct iscsi_hdr *hdr,
if (dlength == 0)
goto done;
- if (data + dlength >= end) {
+ if (data + dlength > end) {
log_warning("buffer size %u too small for data length %u",
max_data_length, dlength);
failed = 1;