use first successful connection to a ISNS server
This commit is contained in:
parent
2c8471c744
commit
af909e1586
@ -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 @@ iscsi_isns_serverconn(isns_t * isns)
|
||||
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__));
|
||||
|
Loading…
Reference in New Issue
Block a user