projects
/
platform
/
upstream
/
libtirpc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Imported Upstream version 0.2.5
[platform/upstream/libtirpc.git]
/
src
/
svc_auth_unix.c
diff --git
a/src/svc_auth_unix.c
b/src/svc_auth_unix.c
index
ce83859
..
9585069
100644
(file)
--- a/
src/svc_auth_unix.c
+++ b/
src/svc_auth_unix.c
@@
-43,6
+43,8
@@
#include <rpc/rpc.h>
#include <rpc/rpc.h>
+extern SVCAUTH svc_auth_none;
+
/*
* Unix longhand authenticator
*/
/*
* Unix longhand authenticator
*/
@@
-67,6
+69,8
@@
_svcauth_unix(rqst, msg)
assert(rqst != NULL);
assert(msg != NULL);
assert(rqst != NULL);
assert(msg != NULL);
+ rqst->rq_xprt->xp_auth = &svc_auth_none;
+
area = (struct area *) rqst->rq_clntcred;
aup = &area->area_aup;
aup->aup_machname = area->area_machname;
area = (struct area *) rqst->rq_clntcred;
aup = &area->area_aup;
aup->aup_machname = area->area_machname;
@@
-142,5
+146,6
@@
_svcauth_short(rqst, msg)
struct svc_req *rqst;
struct rpc_msg *msg;
{
struct svc_req *rqst;
struct rpc_msg *msg;
{
+ rqst->rq_xprt->xp_auth = &svc_auth_none;
return (AUTH_REJECTEDCRED);
}
return (AUTH_REJECTEDCRED);
}