changeset 12960:59a6f9b695ef

6953290 adt_load_ttyname/adt_load_hostname should report ENETDOWN if there are no interfaces
author gww <gary.winiger@oracle.com>
date Wed, 28 Jul 2010 16:10:22 -0700
parents f5f96e09bf49
children b521d551715f
files usr/src/lib/libbsm/common/adt.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/usr/src/lib/libbsm/common/adt.c	Wed Jul 28 15:51:57 2010 -0700
+++ b/usr/src/lib/libbsm/common/adt.c	Wed Jul 28 16:10:22 2010 -0700
@@ -2106,7 +2106,7 @@
 	int	ifal_count;
 	int	i;
 
-	if ((ifal_count = ifaddrlist(&ifal, family, 0, errbuf)) <= 0) {
+	if ((ifal_count = ifaddrlist(&ifal, family, 0, errbuf)) < 0) {
 		int serrno = errno;
 
 		(void) snprintf(msg, sizeof (msg), "adt_get_local_address "