Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sbin/iscsid Fix a bug introduced in rev 1.2: return "curr", ...



details:   https://anonhg.NetBSD.org/src/rev/38ba1d74568b
branches:  trunk
changeset: 779434:38ba1d74568b
user:      riz <riz%NetBSD.org@localhost>
date:      Sun May 27 23:54:45 2012 +0000

description:
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!

diffstat:

 sbin/iscsid/iscsid_lists.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (21 lines):

diff -r 1e90293bdb59 -r 38ba1d74568b sbin/iscsid/iscsid_lists.c
--- a/sbin/iscsid/iscsid_lists.c        Sun May 27 23:03:24 2012 +0000
+++ b/sbin/iscsid/iscsid_lists.c        Sun May 27 23:54:45 2012 +0000
@@ -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 @@
                        break;
        }
 
-       DEB(10, ("Find_TagetName returns %p\n", curr));
+       DEB(10, ("Find_TargetName returns %p\n", curr));
 
-       return t;
+       return (target_t *)curr;
 }
 
 



Home | Main Index | Thread Index | Old Index