Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/net return NS_UNAVAIL if args are dodgy
details: https://anonhg.NetBSD.org/src/rev/5aa5fb80b9a6
branches: trunk
changeset: 476464:5aa5fb80b9a6
user: lukem <lukem%NetBSD.org@localhost>
date: Thu Sep 16 23:43:52 1999 +0000
description:
return NS_UNAVAIL if args are dodgy
diffstat:
lib/libc/net/nsdispatch.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diffs (29 lines):
diff -r 343c92885477 -r 5aa5fb80b9a6 lib/libc/net/nsdispatch.c
--- a/lib/libc/net/nsdispatch.c Thu Sep 16 22:52:11 1999 +0000
+++ b/lib/libc/net/nsdispatch.c Thu Sep 16 23:43:52 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: nsdispatch.c,v 1.12 1999/09/16 11:45:16 lukem Exp $ */
+/* $NetBSD: nsdispatch.c,v 1.13 1999/09/16 23:43:52 lukem Exp $ */
/*-
* Copyright (c) 1997, 1998, 1999 The NetBSD Foundation, Inc.
@@ -38,7 +38,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: nsdispatch.c,v 1.12 1999/09/16 11:45:16 lukem Exp $");
+__RCSID("$NetBSD: nsdispatch.c,v 1.13 1999/09/16 23:43:52 lukem Exp $");
#endif /* LIBC_SCCS and not lint */
#include "namespace.h"
@@ -276,10 +276,8 @@
_DIAGASSERT(database != NULL);
_DIAGASSERT(method != NULL);
-#ifdef _DIAGNOSTIC
if (database == NULL || method == NULL)
return (NS_UNAVAIL);
-#endif
dbt = _nsdbtget(database);
if (dbt != NULL) {
Home |
Main Index |
Thread Index |
Old Index