]> granicus.if.org Git - libtirpc/commitdiff
http://web.mit.edu/kerberos/advisories/MITKRB5-SA-2006-002-rpc.txt libtirpc-0.1.12-rc1
authorJeff Layton <jlayton@redhat.com>
Mon, 20 Apr 2009 16:23:25 +0000 (12:23 -0400)
committerSteve Dickson <steved@redhat.com>
Mon, 20 Apr 2009 16:23:25 +0000 (12:23 -0400)
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
src/svc.c

index 55a254c389f78d02e0dc5e5d8ab6c02310158d7a..d4877dbf1449c58bb58e6653fed75494e1571f0c 100644 (file)
--- a/src/svc.c
+++ b/src/svc.c
@@ -78,6 +78,7 @@ static struct svc_callout
 
 extern rwlock_t svc_lock;
 extern rwlock_t svc_fd_lock;
+extern struct svc_auth_ops svc_auth_gss_ops;
 
 static struct svc_callout *svc_find (rpcprog_t, rpcvers_t,
                                     struct svc_callout **, char *);
@@ -715,6 +716,11 @@ svc_getreq_common (fd)
          SVC_DESTROY (xprt);
          break;
        }
+      else if ((xprt->xp_auth != NULL) &&
+              (xprt->xp_auth->svc_ah_ops != &svc_auth_gss_ops))
+       {
+         xprt->xp_auth = NULL;
+       }
     }
   while (stat == XPRT_MOREREQS);
 }