Module Name:    src
Committed By:   mlelstv
Date:           Sun Jun  5 04:51:57 UTC 2016

Modified Files:
        src/sys/dev/iscsi: iscsi_rcv.c

Log Message:
ignore invalid ITT


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/sys/dev/iscsi/iscsi_rcv.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/iscsi/iscsi_rcv.c
diff -u src/sys/dev/iscsi/iscsi_rcv.c:1.13 src/sys/dev/iscsi/iscsi_rcv.c:1.14
--- src/sys/dev/iscsi/iscsi_rcv.c:1.13	Sun Jun  5 04:36:05 2016
+++ src/sys/dev/iscsi/iscsi_rcv.c	Sun Jun  5 04:51:57 2016
@@ -1,4 +1,4 @@
-/*	$NetBSD: iscsi_rcv.c,v 1.13 2016/06/05 04:36:05 mlelstv Exp $	*/
+/*	$NetBSD: iscsi_rcv.c,v 1.14 2016/06/05 04:51:57 mlelstv Exp $	*/
 
 /*-
  * Copyright (c) 2004,2005,2006,2011 The NetBSD Foundation, Inc.
@@ -125,6 +125,9 @@ ccb_from_itt(connection_t *conn, uint32_
 	ccb_t *ccb;
 	int cidx;
 
+	if (itt == 0xffffffff)
+		return NULL;
+
 	cidx = itt & 0xff;
 	if (cidx >= CCBS_PER_SESSION) {
 		return NULL;

Reply via email to