summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ctld/login.c
diff options
context:
space:
mode:
authortrasz <trasz@FreeBSD.org>2014-03-25 12:33:16 +0000
committertrasz <trasz@FreeBSD.org>2014-03-25 12:33:16 +0000
commit4a35e9f81440760668c42351cf5b2ef12a68ad19 (patch)
treefb24430120c69119e22268ba225feffb908792c0 /usr.sbin/ctld/login.c
parent9a3c8da93d95fd7a586e236d784e7caaf5949583 (diff)
downloadFreeBSD-src-4a35e9f81440760668c42351cf5b2ef12a68ad19.zip
FreeBSD-src-4a35e9f81440760668c42351cf5b2ef12a68ad19.tar.gz
MFC r261752:
Empty data segment during Login Phase is rather unlikely, but it's not, by itself, a protocol error. This fixes interoperability with OpenBSD initiator. Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'usr.sbin/ctld/login.c')
-rw-r--r--usr.sbin/ctld/login.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/usr.sbin/ctld/login.c b/usr.sbin/ctld/login.c
index 3273664..ceabd92 100644
--- a/usr.sbin/ctld/login.c
+++ b/usr.sbin/ctld/login.c
@@ -128,10 +128,6 @@ login_receive(struct connection *conn, bool initial)
log_errx(1, "received Login PDU with unsupported "
"Version-min 0x%x", bhslr->bhslr_version_min);
}
- if (request->pdu_data_len == 0) {
- login_send_error(request, 0x02, 0x00);
- log_errx(1, "received Login PDU with empty data segment");
- }
if (ntohl(bhslr->bhslr_cmdsn) < conn->conn_cmdsn) {
login_send_error(request, 0x02, 0x05);
log_errx(1, "received Login PDU with decreasing CmdSN: "
OpenPOWER on IntegriCloud