changeset 2714:f703af5e06a6

6359306 inetd is unable to lookup services from nis, where as same file works fine for Soalris 8 and 9.
author jonb
date Tue, 12 Sep 2006 11:24:26 -0700
parents b6d4888c41b9
children 9e9e203a43e5
files usr/src/lib/libinetsvc/common/inetsvc.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/usr/src/lib/libinetsvc/common/inetsvc.c	Tue Sep 12 01:08:50 2006 -0700
+++ b/usr/src/lib/libinetsvc/common/inetsvc.c	Tue Sep 12 11:24:26 2006 -0700
@@ -739,7 +739,10 @@
 			}
 		}
 
-		if (invalid_proto || (proto == NULL))
+		if (proto == NULL)
+			break;
+
+		if (invalid_proto)
 			goto past_proto_processing;
 
 		/* strip a trailing only to simplify further processing */