From 57074683850b7d3ff56e072500f8538560da0be8 Mon Sep 17 00:00:00 2001 From: Marcelo Araujo Date: Fri, 4 Mar 2016 03:10:08 +0000 Subject: [PATCH] Set argument encode/result decode call backs for 'maplist' and 'all'. Note: Listing a map is still not fully implemented. Obtained from: OpenBSD (r1.16, r1.17) --- usr.sbin/ypldap/yp.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/usr.sbin/ypldap/yp.c b/usr.sbin/ypldap/yp.c index c5e8edda1543..0a1183b534c9 100644 --- a/usr.sbin/ypldap/yp.c +++ b/usr.sbin/ypldap/yp.c @@ -216,6 +216,8 @@ yp_dispatch(struct svc_req *req, SVCXPRT *trans) return; case YPPROC_ALL: log_debug("ypproc_all"); + xdr_argument = (xdrproc_t) xdr_ypreq_nokey; + xdr_result = (xdrproc_t) xdr_ypresp_all; if (yp_check(req) == -1) return; cb = (void *)ypproc_all_2_svc; @@ -236,6 +238,8 @@ yp_dispatch(struct svc_req *req, SVCXPRT *trans) return; case YPPROC_MAPLIST: log_debug("ypproc_maplist"); + xdr_argument = (xdrproc_t) xdr_domainname; + xdr_result = (xdrproc_t) xdr_ypresp_maplist; if (yp_check(req) == -1) return; cb = (void *)ypproc_maplist_2_svc;