In ypproc_master_2_svc(), don't leave result.peer uninitialized when
returning an error.
This commit is contained in:
parent
6dc00a94a6
commit
45da6d16c1
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=14303
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user