diff options
author | Mike Christie <michaelc@cs.wisc.edu> | 2008-03-14 12:17:40 -0500 |
---|---|---|
committer | Mike Christie <michaelc@cs.wisc.edu> | 2008-03-14 12:17:40 -0500 |
commit | d02393ef50ff1ca0ea4fd196ecf1fb9aac34829d (patch) | |
tree | 41604d5a3ec0b41a6da42b819317d9e75438d896 /usr | |
parent | a9dfab4b5ec29ca2ed4bb653f2c1a1de88756ef4 (diff) | |
download | open-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |