svn commit: r283898 - head/usr.sbin/ctld
Alexander Motin
mav at FreeBSD.org
Tue Jun 2 01:47:13 UTC 2015
Author: mav
Date: Tue Jun 2 01:47:12 2015
New Revision: 283898
URL: https://svnweb.freebsd.org/changeset/base/283898
Log:
Fix bug in r278331: unlike some other options MaxRecvDataSegmentLength
is not negotiated as minimum, but only reported by sides to each other.
MFC after: 1 week
Modified:
head/usr.sbin/ctld/login.c
Modified: head/usr.sbin/ctld/login.c
==============================================================================
--- head/usr.sbin/ctld/login.c Tue Jun 2 00:47:38 2015 (r283897)
+++ head/usr.sbin/ctld/login.c Tue Jun 2 01:47:12 2015 (r283898)
@@ -557,7 +557,7 @@ login_negotiate_key(struct pdu *request,
tmp = conn->conn_data_segment_limit;
}
conn->conn_max_data_segment_length = tmp;
- keys_add_int(response_keys, name, tmp);
+ keys_add_int(response_keys, name, conn->conn_data_segment_limit);
} else if (strcmp(name, "MaxBurstLength") == 0) {
tmp = strtoul(value, NULL, 10);
if (tmp <= 0) {
More information about the svn-src-all
mailing list