summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ctld/discovery.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/discovery.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/discovery.c')
-rw-r--r--usr.sbin/ctld/discovery.c3
1 files changed, 0 insertions, 3 deletions
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));
OpenPOWER on IntegriCloud