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) {
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to