From 45c72a01103d149ce36c2cbe3dc17a86a00169f9 Mon Sep 17 00:00:00 2001 From: plunky Date: Fri, 24 Jun 2011 20:06:04 +0000 Subject: [PATCH] if print_attribute() did not print, we should try the next service_class before failing --- usr.bin/sdpquery/print.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/usr.bin/sdpquery/print.c b/usr.bin/sdpquery/print.c index ee5272526d32..61af4b01c8ca 100644 --- a/usr.bin/sdpquery/print.c +++ b/usr.bin/sdpquery/print.c @@ -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 -__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 #include @@ -646,10 +646,10 @@ print_service_attribute(uint16_t id, sdp_data_t *value) 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; } }