aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNavdeep Parhar <np@FreeBSD.org>2016-07-22 19:28:23 +0000
committerNavdeep Parhar <np@FreeBSD.org>2016-07-22 19:28:23 +0000
commitfd936afb97c0d6d27c47fcc9d5c45c04463bdbaf (patch)
tree145cdc990c0062b9f9c8457a5aa1686d1e3b2eca
parentf5dac37f967c72e3b486d96b547cd9f6471ed2c8 (diff)
downloadsrc-fd936afb97c0d6d27c47fcc9d5c45c04463bdbaf.tar.gz
src-fd936afb97c0d6d27c47fcc9d5c45c04463bdbaf.zip
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@ Sponsored by: Chelsio Communications Differential Revision: https://reviews.freebsd.org/D7278
Notes
Notes: svn path=/head/; revision=303199
-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 a7a4f7d8f872..5216c7e8f853 100644
--- a/usr.sbin/ctld/login.c
+++ b/usr.sbin/ctld/login.c
@@ -569,7 +569,7 @@ login_negotiate_key(struct pdu *request, const char *name,
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) {