Date: Mon, 25 Jul 2016 17:17:59 +0000 (UTC) From: Navdeep Parhar <np@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org Subject: svn commit: r303311 - stable/11/usr.sbin/ctld Message-ID: <201607251717.u6PHHx6m006978@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: np Date: Mon Jul 25 17:17:59 2016 New Revision: 303311 URL: https://svnweb.freebsd.org/changeset/base/303311 Log: MFC r303199: 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@ Approved by: re@ (gjb@) Sponsored by: Chelsio Communications Differential Revision: https://reviews.freebsd.org/D7278 Modified: stable/11/usr.sbin/ctld/login.c Directory Properties: stable/11/ (props changed) Modified: stable/11/usr.sbin/ctld/login.c ============================================================================== --- stable/11/usr.sbin/ctld/login.c Mon Jul 25 16:28:02 2016 (r303310) +++ stable/11/usr.sbin/ctld/login.c Mon Jul 25 17:17:59 2016 (r303311) @@ -569,7 +569,7 @@ login_negotiate_key(struct pdu *request, 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) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201607251717.u6PHHx6m006978>