Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sbin/iscsid use first successful connection to a ISNS server
details: https://anonhg.NetBSD.org/src/rev/e16b7691d171
branches: trunk
changeset: 779875:e16b7691d171
user: mlelstv <mlelstv%NetBSD.org@localhost>
date: Sun Jun 24 13:08:38 2012 +0000
description:
use first successful connection to a ISNS server
diffstat:
sbin/iscsid/iscsid_discover.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 2905e961215b -r e16b7691d171 sbin/iscsid/iscsid_discover.c
--- a/sbin/iscsid/iscsid_discover.c Sun Jun 24 10:06:34 2012 +0000
+++ b/sbin/iscsid/iscsid_discover.c Sun Jun 24 13:08:38 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: iscsid_discover.c,v 1.3 2011/11/20 01:23:57 agc Exp $ */
+/* $NetBSD: iscsid_discover.c,v 1.4 2012/06/24 13:08:38 mlelstv Exp $ */
/*-
* Copyright (c) 2005,2006,2011 The NetBSD Foundation, Inc.
@@ -522,7 +522,7 @@
return (uint32_t)-1;
}
- if (connect(sock, addr->ai_addr, addr->ai_addrlen) == -1)
+ if (connect(sock, addr->ai_addr, addr->ai_addrlen) != -1)
break;
DEB(1, ("%s: connect call FAILED!\n", __func__));
Home |
Main Index |
Thread Index |
Old Index