Module Name:    src
Committed By:   riz
Date:           Sun May 27 23:54:45 UTC 2012

Modified Files:
        src/sbin/iscsid: iscsid_lists.c

Log Message:
Fix a bug introduced in rev 1.2:  return "curr", like the debugging
says we're doing, because it, unlike "t", will propely be NULL when
the target name isn't found in the list.  Now we can have multiple
targets again!


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/sbin/iscsid/iscsid_lists.c

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

Modified files:

Index: src/sbin/iscsid/iscsid_lists.c
diff -u src/sbin/iscsid/iscsid_lists.c:1.5 src/sbin/iscsid/iscsid_lists.c:1.6
--- src/sbin/iscsid/iscsid_lists.c:1.5	Sun May 27 20:05:04 2012
+++ src/sbin/iscsid/iscsid_lists.c	Sun May 27 23:54:45 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: iscsid_lists.c,v 1.5 2012/05/27 20:05:04 christos Exp $	*/
+/*	$NetBSD: iscsid_lists.c,v 1.6 2012/05/27 23:54:45 riz Exp $	*/
 
 /*-
  * Copyright (c) 2005,2006,2011 The NetBSD Foundation, Inc.
@@ -232,9 +232,9 @@ find_TargetName(iscsid_list_kind_t lst, 
 			break;
 	}
 
-	DEB(10, ("Find_TagetName returns %p\n", curr));
+	DEB(10, ("Find_TargetName returns %p\n", curr));
 
-	return t;
+	return (target_t *)curr;
 }
 
 

Reply via email to