svn commit: r303199 - head/usr.sbin/ctld
Navdeep Parhar
np at FreeBSD.org
Fri Jul 22 19:28:25 UTC 2016
Author: np
Date: Fri Jul 22 19:28:23 2016
New Revision: 303199
URL: https://svnweb.freebsd.org/changeset/base/303199
Log:
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
Modified:
head/usr.sbin/ctld/login.c
Modified: head/usr.sbin/ctld/login.c
==============================================================================
--- head/usr.sbin/ctld/login.c Fri Jul 22 17:36:40 2016 (r303198)
+++ head/usr.sbin/ctld/login.c Fri Jul 22 19:28:23 2016 (r303199)
@@ -569,7 +569,7 @@ login_negotiate_key(struct pdu *request,
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) {
More information about the svn-src-all
mailing list