diff options
author | wpaul <wpaul@FreeBSD.org> | 1996-02-29 23:10:38 +0000 |
---|---|---|
committer | wpaul <wpaul@FreeBSD.org> | 1996-02-29 23:10:38 +0000 |
commit | 8f1aea64e18b8cf9fe0d64f551c279f9144cd309 (patch) | |
tree | 59acf03336d641db41276d55ecb8168e9a80c4de /usr.sbin/ypserv | |
parent | 76b7e18f09b3ecbe2908fb299a2a1febdb6b5ce5 (diff) | |
download | FreeBSD-src-8f1aea64e18b8cf9fe0d64f551c279f9144cd309.zip FreeBSD-src-8f1aea64e18b8cf9fe0d64f551c279f9144cd309.tar.gz |
In ypproc_master_2_svc(), don't leave result.peer uninitialized when
returning an error.
Diffstat (limited to 'usr.sbin/ypserv')
-rw-r--r-- | usr.sbin/ypserv/yp_server.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/ypserv/yp_server.c b/usr.sbin/ypserv/yp_server.c index 63cef5f..0c3c66e 100644 --- a/usr.sbin/ypserv/yp_server.c +++ b/usr.sbin/ypserv/yp_server.c @@ -45,7 +45,7 @@ #include <rpc/rpc.h> #ifndef lint -static char rcsid[] = "$Id: yp_server.c,v 1.3 1996/02/26 02:23:39 wpaul Exp $"; +static char rcsid[] = "$Id: yp_server.c,v 1.6 1996/02/26 02:34:26 wpaul Exp $"; #endif /* not lint */ int forked = 0; @@ -532,6 +532,8 @@ ypproc_master_2_svc(ypreq_nokey *argp, struct svc_req *rqstp) static ypresp_master result; DBT key,data; + result.peer = ""; + if (yp_access(NULL, (struct svc_req *)rqstp)) { result.stat = YP_YPERR; return(&result); |