Module Name:    src
Committed By:   plunky
Date:           Fri Jun 24 20:06:04 UTC 2011

Modified Files:
        src/usr.bin/sdpquery: print.c

Log Message:
if print_attribute() did not print, we should try the next
service_class before failing


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/usr.bin/sdpquery/print.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.bin/sdpquery/print.c
diff -u src/usr.bin/sdpquery/print.c:1.10 src/usr.bin/sdpquery/print.c:1.11
--- src/usr.bin/sdpquery/print.c:1.10	Fri Jun 24 19:03:46 2011
+++ src/usr.bin/sdpquery/print.c	Fri Jun 24 20:06:04 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: print.c,v 1.10 2011/06/24 19:03:46 plunky Exp $	*/
+/*	$NetBSD: print.c,v 1.11 2011/06/24 20:06:04 plunky Exp $	*/
 
 /*-
  * Copyright (c) 2009 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: print.c,v 1.10 2011/06/24 19:03:46 plunky Exp $");
+__RCSID("$NetBSD: print.c,v 1.11 2011/06/24 20:06:04 plunky Exp $");
 
 #include <ctype.h>
 #include <iconv.h>
@@ -646,10 +646,10 @@
 
 	for (i = 0; i < nservices; i++) {
 		for (j = 0; j < __arraycount(service_list); j++) {
-			if (service_class[i] == service_list[j].class)
-				return print_attribute(id, value,
-				    service_list[j].attrs,
-				    service_list[j].nattr);
+			if (service_class[i] == service_list[j].class
+			    && print_attribute(id, value,
+			    service_list[j].attrs, service_list[j].nattr))
+				return true;
 		}
 	}
 

Reply via email to