mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-27 19:37:53 +01:00
Initialise the SVCAUTH field for new transport structures when they are
allocated instead of waiting for the first request. This fixes an issue with rpcbind's support for PMAPPROC_CALLIT. Reviewed by: markm
This commit is contained in:
parent
745aaef5b5
commit
4efa8f3e07
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=182891
@ -46,6 +46,8 @@
|
||||
* Server side authenticator
|
||||
*/
|
||||
__BEGIN_DECLS
|
||||
extern struct svc_auth_ops svc_auth_null_ops;
|
||||
|
||||
extern enum auth_stat _authenticate(struct svc_req *, struct rpc_msg *);
|
||||
extern int svc_auth_reg(int, enum auth_stat (*)(struct svc_req *,
|
||||
struct rpc_msg *));
|
||||
|
@ -569,6 +569,7 @@ svc_xprt_alloc()
|
||||
ext = mem_alloc(sizeof(SVCXPRT_EXT));
|
||||
memset(ext, 0, sizeof(SVCXPRT_EXT));
|
||||
xprt->xp_p3 = ext;
|
||||
ext->xp_auth.svc_ah_ops = &svc_auth_null_ops;
|
||||
|
||||
return (xprt);
|
||||
}
|
||||
|
@ -75,7 +75,7 @@ struct authsvc {
|
||||
};
|
||||
static struct authsvc *Auths = NULL;
|
||||
|
||||
static struct svc_auth_ops svc_auth_null_ops;
|
||||
struct svc_auth_ops svc_auth_null_ops;
|
||||
|
||||
/*
|
||||
* The call rpc message, msg has been obtained from the wire. The msg contains
|
||||
@ -162,7 +162,7 @@ svcauth_null_wrap(auth, xdrs, xdr_func, xdr_ptr)
|
||||
return (xdr_func(xdrs, xdr_ptr));
|
||||
}
|
||||
|
||||
static struct svc_auth_ops svc_auth_null_ops = {
|
||||
struct svc_auth_ops svc_auth_null_ops = {
|
||||
svcauth_null_wrap,
|
||||
svcauth_null_wrap,
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user