diff options
author | trasz <trasz@FreeBSD.org> | 2013-10-09 19:28:56 +0000 |
---|---|---|
committer | trasz <trasz@FreeBSD.org> | 2013-10-09 19:28:56 +0000 |
commit | a111dd548bde80502ea143ef148b2ebf06c8bbc8 (patch) | |
tree | fd352b4fc7a3f47c004cc0ecd1e5ce9110ea0793 | |
parent | 75528d8e36fb23734af42c83fe710155dc3e2d5c (diff) | |
download | FreeBSD-src-a111dd548bde80502ea143ef148b2ebf06c8bbc8.zip FreeBSD-src-a111dd548bde80502ea143ef148b2ebf06c8bbc8.tar.gz |
Fail connection upon receiving too large data segment.
Approved by: re (glebius)
Sponsored by: FreeBSD Foundation
-rw-r--r-- | sys/dev/iscsi/icl.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/iscsi/icl.c b/sys/dev/iscsi/icl.c index 6796878..cf58dfd 100644 --- a/sys/dev/iscsi/icl.c +++ b/sys/dev/iscsi/icl.c @@ -564,6 +564,7 @@ icl_conn_receive_pdu(struct icl_conn *ic, size_t *availablep) "MaxDataSegmentLength %zd; " "dropping connection", len, ic->ic_max_data_segment_length); + error = EINVAL; break; } |