Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 Oct 2013 19:28:56 +0000 (UTC)
From:      Edward Tomasz Napierala <trasz@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r256228 - head/sys/dev/iscsi
Message-ID:  <201310091928.r99JSugi077470@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help

Author: trasz
Date: Wed Oct  9 19:28:56 2013
New Revision: 256228
URL: http://svnweb.freebsd.org/changeset/base/256228

Log:
  Fail connection upon receiving too large data segment.
  
  Approved by:	re (glebius)
  Sponsored by:	FreeBSD Foundation

Modified:
  head/sys/dev/iscsi/icl.c

Modified: head/sys/dev/iscsi/icl.c
==============================================================================
--- head/sys/dev/iscsi/icl.c	Wed Oct  9 19:28:07 2013	(r256227)
+++ head/sys/dev/iscsi/icl.c	Wed Oct  9 19:28:56 2013	(r256228)
@@ -564,6 +564,7 @@ icl_conn_receive_pdu(struct icl_conn *ic
 			    "MaxDataSegmentLength %zd; "
 			    "dropping connection",
 			    len, ic->ic_max_data_segment_length);
+			error = EINVAL;
 			break;
 		}
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201310091928.r99JSugi077470>