aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/ctld
diff options
context:
space:
mode:
authorAlexander Motin <mav@FreeBSD.org>2015-06-02 01:47:12 +0000
committerAlexander Motin <mav@FreeBSD.org>2015-06-02 01:47:12 +0000
commitf249b52d9a0bde9bc960bb122bb92798e573dc44 (patch)
treeb2cf21282fbe3f392d744a53b7620ae938ed698d /usr.sbin/ctld
parentf49cc1b5c02d8426dfebe16c4025ecb8ce1f7940 (diff)
downloadsrc-f249b52d9a0bde9bc960bb122bb92798e573dc44.tar.gz
src-f249b52d9a0bde9bc960bb122bb92798e573dc44.zip
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
Notes
Notes: svn path=/head/; revision=283898
Diffstat (limited to 'usr.sbin/ctld')
-rw-r--r--usr.sbin/ctld/login.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/ctld/login.c b/usr.sbin/ctld/login.c
index c6b83d947adf..8029130b1e21 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) {