diff options
author | mav <mav@FreeBSD.org> | 2015-06-02 01:47:12 +0000 |
---|---|---|
committer | mav <mav@FreeBSD.org> | 2015-06-02 01:47:12 +0000 |
commit | 3fa2da5f084a25755bd38c5435b522e8010d52a2 (patch) | |
tree | b2cf21282fbe3f392d744a53b7620ae938ed698d /usr.sbin/ctld | |
parent | 96fb955fec192aaa502022c36a69d31f78e4da7f (diff) | |
download | FreeBSD-src-3fa2da5f084a25755bd38c5435b522e8010d52a2.zip FreeBSD-src-3fa2da5f084a25755bd38c5435b522e8010d52a2.tar.gz |
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
Diffstat (limited to 'usr.sbin/ctld')
-rw-r--r-- | usr.sbin/ctld/login.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/ctld/login.c b/usr.sbin/ctld/login.c index c6b83d9..8029130 100644 --- a/usr.sbin/ctld/login.c +++ b/usr.sbin/ctld/login.c @@ -557,7 +557,7 @@ login_negotiate_key(struct pdu *request, const char *name, 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) { |