ctld(8): Fix MaxBurstLength negotiation.

The target must reply with the selected value of MaxBurstSize instead of
just echoing back the initiator's offered value.

Reviewed by:	mav@
Sponsored by:	Chelsio Communications
Differential Revision:	https://reviews.freebsd.org/D7278
This commit is contained in:
Navdeep Parhar 2016-07-22 19:28:23 +00:00
parent f5dac37f96
commit fd936afb97
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=303199

View File

@ -569,7 +569,7 @@ login_negotiate_key(struct pdu *request, const char *name,
tmp = MAX_BURST_LENGTH;
}
conn->conn_max_burst_length = tmp;
keys_add(response_keys, name, value);
keys_add_int(response_keys, name, tmp);
} else if (strcmp(name, "FirstBurstLength") == 0) {
tmp = strtoul(value, NULL, 10);
if (tmp <= 0) {