From e9aaacc8802599ad267dd5d246383c7ea7844d6a Mon Sep 17 00:00:00 2001 From: enami Date: Tue, 4 Jul 2000 08:18:44 +0000 Subject: [PATCH] If the line wasn't for the client we are looking for, skip it. While I'm here, I indented the continuation line properly. --- usr.sbin/rpc.bootparamd/bootparamd.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/usr.sbin/rpc.bootparamd/bootparamd.c b/usr.sbin/rpc.bootparamd/bootparamd.c index 0daeccc14059..198c685b4d96 100644 --- a/usr.sbin/rpc.bootparamd/bootparamd.c +++ b/usr.sbin/rpc.bootparamd/bootparamd.c @@ -1,4 +1,4 @@ -/* $NetBSD: bootparamd.c,v 1.34 2000/06/28 01:30:56 thorpej Exp $ */ +/* $NetBSD: bootparamd.c,v 1.35 2000/07/04 08:18:44 enami Exp $ */ /* * This code is not copyright, and is placed in the public domain. @@ -11,7 +11,7 @@ #include #ifndef lint -__RCSID("$NetBSD: bootparamd.c,v 1.34 2000/06/28 01:30:56 thorpej Exp $"); +__RCSID("$NetBSD: bootparamd.c,v 1.35 2000/07/04 08:18:44 enami Exp $"); #endif #include @@ -390,13 +390,14 @@ lookup_bootparam(client, client_canonical, id, server, path) continue; } if (fnmatch(word, hp->h_name, - FNM_CASEFOLD) == 0) { + FNM_CASEFOLD) == 0) { /* See above. */ if (HASGLOB(word)) canon = hp->h_name; else canon = word; - } + } else + continue; } #undef HASGLOB