summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ypserv/common/yplib_host.c
diff options
context:
space:
mode:
authormaja <maja@openbsd.org>1998-02-14 10:05:26 +0000
committermaja <maja@openbsd.org>1998-02-14 10:05:26 +0000
commita72ca0c655adbe12849893b2cd31eeccafe1949c (patch)
tree5eafb6baa0ebc2374d38ce39fbb56cf62c4aab92 /usr.sbin/ypserv/common/yplib_host.c
parentAdd support for DNS host lookup. -moj (diff)
downloadwireguard-openbsd-a72ca0c655adbe12849893b2cd31eeccafe1949c.tar.xz
wireguard-openbsd-a72ca0c655adbe12849893b2cd31eeccafe1949c.zip
Don't install a new map if yp_all failed. Noticed by Theo. -moj
Diffstat (limited to 'usr.sbin/ypserv/common/yplib_host.c')
-rw-r--r--usr.sbin/ypserv/common/yplib_host.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.sbin/ypserv/common/yplib_host.c b/usr.sbin/ypserv/common/yplib_host.c
index 40ad46ce540..7d7282a7d00 100644
--- a/usr.sbin/ypserv/common/yplib_host.c
+++ b/usr.sbin/ypserv/common/yplib_host.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: yplib_host.c,v 1.8 1998/01/12 20:45:19 maja Exp $ */
+/* $OpenBSD: yplib_host.c,v 1.9 1998/02/14 10:05:26 maja Exp $ */
/*
* Copyright (c) 1992, 1993 Theo de Raadt <deraadt@theos.com>
@@ -32,7 +32,7 @@
*/
#ifndef LINT
-static char *rcsid = "$OpenBSD: yplib_host.c,v 1.8 1998/01/12 20:45:19 maja Exp $";
+static char *rcsid = "$OpenBSD: yplib_host.c,v 1.9 1998/02/14 10:05:26 maja Exp $";
#endif
#include <sys/param.h>
@@ -307,7 +307,6 @@ struct ypall_callback *incallback;
(void) clnt_call(client, YPPROC_ALL,
xdr_ypreq_nokey, &yprnk, xdr_ypresp_all_seq, &status, tv);
- xdr_free(xdr_ypresp_all_seq, (char *)&status); /* not really needed... */
if(status != YP_FALSE)
return ypprot_err(status);