Imported Upstream version 0.2.5
[platform/upstream/libtirpc.git] / src / svc_auth_unix.c
index ce83859..9585069 100644 (file)
@@ -43,6 +43,8 @@
 
 #include <rpc/rpc.h>
 
+extern SVCAUTH svc_auth_none;
+
 /*
  * Unix longhand authenticator
  */
@@ -67,6 +69,8 @@ _svcauth_unix(rqst, msg)
        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;
@@ -142,5 +146,6 @@ _svcauth_short(rqst, msg)
        struct svc_req *rqst;
        struct rpc_msg *msg;
 {
+       rqst->rq_xprt->xp_auth = &svc_auth_none;
        return (AUTH_REJECTEDCRED);
 }