diff options
author | Mats O Jansson <maja@cvs.openbsd.org> | 1998-01-08 22:36:50 +0000 |
---|---|---|
committer | Mats O Jansson <maja@cvs.openbsd.org> | 1998-01-08 22:36:50 +0000 |
commit | 0439ddaa0b673a6fbae6fda1e4a76655a83c2b8f (patch) | |
tree | ea8af4cdd2531cf10209f294a43541dddd09c413 /usr.sbin/ypserv/ypxfr | |
parent | b187b5c4bc303b28ea8f4581717246bfa6db4c74 (diff) |
Fix some problems with xfr of secure maps. Problem reported by
Eric Rungi <rungus@openface.org> -moj
Diffstat (limited to 'usr.sbin/ypserv/ypxfr')
-rw-r--r-- | usr.sbin/ypserv/ypxfr/ypxfr.c | 6 |
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; |