diff options
| author | Bill Paul <wpaul@FreeBSD.org> | 1997-05-28 05:05:31 +0000 |
|---|---|---|
| committer | Bill Paul <wpaul@FreeBSD.org> | 1997-05-28 05:05:31 +0000 |
| commit | ad133ed648c16801aab7529587cf546c6328aa3d (patch) | |
| tree | 54e2d37a18bf326215ef94049ed38b66670f0744 /lib/libc/rpc/svc_auth_unix.c | |
| parent | 9f3e964560d322bc8a33edb034336f199371ad5e (diff) | |
Notes
Diffstat (limited to 'lib/libc/rpc/svc_auth_unix.c')
| -rw-r--r-- | lib/libc/rpc/svc_auth_unix.c | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/lib/libc/rpc/svc_auth_unix.c b/lib/libc/rpc/svc_auth_unix.c index 96f7d1531544..959cb7363887 100644 --- a/lib/libc/rpc/svc_auth_unix.c +++ b/lib/libc/rpc/svc_auth_unix.c @@ -30,7 +30,7 @@ #if defined(LIBC_SCCS) && !defined(lint) /*static char *sccsid = "from: @(#)svc_auth_unix.c 1.28 88/02/08 Copyr 1984 Sun Micro";*/ /*static char *sccsid = "from: @(#)svc_auth_unix.c 2.3 88/08/01 4.0 RPCSRC";*/ -static char *rcsid = "$Id$"; +static char *rcsid = "$Id: svc_auth_unix.c,v 1.4 1996/12/30 15:10:14 peter Exp $"; #endif /* @@ -114,8 +114,19 @@ _svcauth_unix(rqst, msg) stat = AUTH_BADCRED; goto done; } - rqst->rq_xprt->xp_verf.oa_flavor = AUTH_NULL; - rqst->rq_xprt->xp_verf.oa_length = 0; + + /* get the verifier */ + if ((u_int)msg->rm_call.cb_verf.oa_length) { + rqst->rq_xprt->xp_verf.oa_flavor = + msg->rm_call.cb_verf.oa_flavor; + rqst->rq_xprt->xp_verf.oa_base = + msg->rm_call.cb_verf.oa_base; + rqst->rq_xprt->xp_verf.oa_length = + msg->rm_call.cb_verf.oa_length; + } else { + rqst->rq_xprt->xp_verf.oa_flavor = AUTH_NULL; + rqst->rq_xprt->xp_verf.oa_length = 0; + } stat = AUTH_OK; done: XDR_DESTROY(&xdrs); |
