From 29f39a2ca1affc574a70f87a854593de93351923 Mon Sep 17 00:00:00 2001 From: lukem Date: Sun, 17 Jan 1999 04:49:04 +0000 Subject: [PATCH] fix thinko introduced in last rototilling of nsdispatch; _nsdbtget() would always return the entry for the first entry looked up. noted by andrew gillham (manifesting itself as ftp failing to lookup names). --- lib/libc/net/nsdispatch.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/libc/net/nsdispatch.c b/lib/libc/net/nsdispatch.c index 5722cc316d70..c0beb16709b8 100644 --- a/lib/libc/net/nsdispatch.c +++ b/lib/libc/net/nsdispatch.c @@ -1,4 +1,4 @@ -/* $NetBSD: nsdispatch.c,v 1.3 1999/01/16 01:21:01 lukem Exp $ */ +/* $NetBSD: nsdispatch.c,v 1.4 1999/01/17 04:49:04 lukem Exp $ */ /*- * Copyright (c) 1997, 1998, 1999 The NetBSD Foundation, Inc. @@ -129,14 +129,14 @@ _nsdbtget(name) extern FILE *_nsyyin; extern int _nsyyparse __P((void)); - if (dbt.name == NULL) { /* construct dummy `files' entry */ + if (dbt.srclist == NULL) { /* construct dummy `files' entry */ ns_src src; src.name = NSSRC_FILES; src.flags = NS_SUCCESS; - dbt.name = name; _nsdbtaddsrc(&dbt, &src); } + dbt.name = name; if (confmod) { if (stat(_PATH_NS_CONF, &statbuf) == -1)