fc79cf4fea
Previously we updated the conection's conn_max_recv_data_segment_length
only when we received a response containing MaxRecvDataSegmentLength
from the target. If the target did not send MaxRecvDataSegmentLength
then we left conn_max_recv_data_segment_length at the default (i.e.,
8192). A target could then send more data than that defult (up to our
advertised maximum), and we would drop the connection.
RFC 7143 specifies that MaxRecvDataSegmentLength is Declarative, not
negotiated. Just set conn_max_recv_data_segment_length to our
advertised value in login_negotiate().
PR: 259355
Reviewed by: mav
MFC after: 1 week
Fixes:
|
||
---|---|---|
.. | ||
chap.c | ||
discovery.c | ||
iscsid.8 | ||
iscsid.c | ||
iscsid.h | ||
keys.c | ||
log.c | ||
login.c | ||
Makefile | ||
Makefile.depend | ||
pdu.c |