diff options
author | dfr <dfr@FreeBSD.org> | 2008-09-09 14:15:55 +0000 |
---|---|---|
committer | dfr <dfr@FreeBSD.org> | 2008-09-09 14:15:55 +0000 |
commit | 73a287b49184cc4b7cc4c689ada9fd5cb5ccc884 (patch) | |
tree | c9744cbbd3e4fa39a76ed292d0756664e32e4cbe /lib/libc/rpc/svc_auth.c | |
parent | 626be4984b8725de1d5bfcd3ca1670bff15bf636 (diff) | |
download | FreeBSD-src-73a287b49184cc4b7cc4c689ada9fd5cb5ccc884.zip FreeBSD-src-73a287b49184cc4b7cc4c689ada9fd5cb5ccc884.tar.gz |
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
Diffstat (limited to 'lib/libc/rpc/svc_auth.c')
-rw-r--r-- | lib/libc/rpc/svc_auth.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/rpc/svc_auth.c b/lib/libc/rpc/svc_auth.c index 4e27ccd..b3894e6 100644 --- a/lib/libc/rpc/svc_auth.c +++ b/lib/libc/rpc/svc_auth.c @@ -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, }; |