Use the key, not the val from the datum when reading the `ypservers'

map.  SunOS ypservers maps place the host name in the key and the val,
but HP-UX and NetBSD ypservers maps place the hostname only in the
key, leaving the val empty.  Since there is no clear standard for this map,
best to play it safe.
This commit is contained in:
thorpej 1996-08-09 20:18:50 +00:00
parent 5ef055ef5c
commit 34ca0ef5c8

View File

@ -1,4 +1,4 @@
/* $NetBSD: yppush.c,v 1.1.1.1 1996/08/09 10:15:01 thorpej Exp $ */
/* $NetBSD: yppush.c,v 1.2 1996/08/09 20:18:50 thorpej Exp $ */
/*
* Copyright (c) 1995 Mats O Jansson <moj@stacken.kth.se>
@ -356,7 +356,7 @@ pushit(instatus, inkey, inkeylen, inval, invallen, indata)
if (instatus != YP_TRUE)
return instatus;
push(invallen, inval);
push(inkeylen, inkey);
return 0;
}