From 4a35e9f81440760668c42351cf5b2ef12a68ad19 Mon Sep 17 00:00:00 2001 From: trasz Date: Tue, 25 Mar 2014 12:33:16 +0000 Subject: 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 --- usr.sbin/ctld/discovery.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'usr.sbin/ctld/discovery.c') diff --git a/usr.sbin/ctld/discovery.c b/usr.sbin/ctld/discovery.c index 5c5757f..3612ce3 100644 --- a/usr.sbin/ctld/discovery.c +++ b/usr.sbin/ctld/discovery.c @@ -61,9 +61,6 @@ text_receive(struct connection *conn) */ if ((bhstr->bhstr_flags & BHSTR_FLAGS_CONTINUE) != 0) log_errx(1, "received Text PDU with unsupported \"C\" flag"); - if (request->pdu_data_len == 0) - log_errx(1, "received Text PDU with empty data segment"); - if (ntohl(bhstr->bhstr_cmdsn) < conn->conn_cmdsn) { log_errx(1, "received Text PDU with decreasing CmdSN: " "was %d, is %d", conn->conn_cmdsn, ntohl(bhstr->bhstr_cmdsn)); -- cgit v1.1