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.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/usr.sbin/ypserv/ypxfr/ypxfr.c b/usr.sbin/ypserv/ypxfr/ypxfr.c
index b5aab324b3a..aed13268cd6 100644
--- a/usr.sbin/ypserv/ypxfr/ypxfr.c
+++ b/usr.sbin/ypserv/ypxfr/ypxfr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ypxfr.c,v 1.32 2004/07/08 06:20:46 matthieu Exp $ */
+/* $OpenBSD: ypxfr.c,v 1.33 2005/05/14 02:32:33 deraadt Exp $ */
/*
* Copyright (c) 1994 Mats O Jansson <moj@stacken.kth.se>
@@ -27,7 +27,7 @@
*/
#ifndef LINT
-static const char rcsid[] = "$OpenBSD: ypxfr.c,v 1.32 2004/07/08 06:20:46 matthieu Exp $";
+static const char rcsid[] = "$OpenBSD: ypxfr.c,v 1.33 2005/05/14 02:32:33 deraadt Exp $";
#endif
#include <sys/types.h>
@@ -213,14 +213,11 @@ add_order(DBM *db, u_int32_t ordernum)
static int
add_master(CLIENT *client, char *domain, char *map, DBM *db)
{
- char keystr[] = YP_MASTER_KEY, *master;
+ char keystr[] = YP_MASTER_KEY, *master = NULL;
datum key, val;
int status;
- master = NULL;
-
/* Get MASTER */
-
status = yp_master_host(client, domain, map, &master);
if (master != NULL) {