svn commit: r303311 - stable/11/usr.sbin/ctld
Navdeep Parhar
np at FreeBSD.org
Mon Jul 25 17:18:00 UTC 2016
Author: np
Date: Mon Jul 25 17:17:59 2016
New Revision: 303311
URL: https://svnweb.freebsd.org/changeset/base/303311
Log:
MFC r303199:
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@
Approved by: re@ (gjb@)
Sponsored by: Chelsio Communications
Differential Revision: https://reviews.freebsd.org/D7278
Modified:
stable/11/usr.sbin/ctld/login.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/usr.sbin/ctld/login.c
==============================================================================
--- stable/11/usr.sbin/ctld/login.c Mon Jul 25 16:28:02 2016 (r303310)
+++ stable/11/usr.sbin/ctld/login.c Mon Jul 25 17:17:59 2016 (r303311)
@@ -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