summaryrefslogtreecommitdiff
path: root/usr.sbin/ypserv/ypxfr/ypxfr.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/ypserv/ypxfr/ypxfr.c')
-rw-r--r--usr.sbin/ypserv/ypxfr/ypxfr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/ypserv/ypxfr/ypxfr.c b/usr.sbin/ypserv/ypxfr/ypxfr.c
index 9c228584c92..a5b79602cea 100644
--- a/usr.sbin/ypserv/ypxfr/ypxfr.c
+++ b/usr.sbin/ypserv/ypxfr/ypxfr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ypxfr.c,v 1.22 1997/07/30 12:07:02 maja Exp $ */
+/* $OpenBSD: ypxfr.c,v 1.23 1998/01/08 22:36:49 maja Exp $ */
/*
* Copyright (c) 1994 Mats O Jansson <moj@stacken.kth.se>
@@ -32,7 +32,7 @@
*/
#ifndef LINT
-static char rcsid[] = "$OpenBSD: ypxfr.c,v 1.22 1997/07/30 12:07:02 maja Exp $";
+static char rcsid[] = "$OpenBSD: ypxfr.c,v 1.23 1998/01/08 22:36:49 maja Exp $";
#endif
#include <sys/types.h>
@@ -340,7 +340,7 @@ DBM *db;
status = yp_match_host(client, domain, map,
k.dptr, k.dsize, &value, &vallen);
- if(status > 0) {
+ if(status == 0 && value) {
v.dptr = value;
v.dsize = vallen;