patch-src_svc_c 716 B

1234567891011121314151617181920212223242526
  1. --- libtirpc-0.2.0.orig/src/svc.c 2009-05-28 21:25:26.000000000 +0200
  2. +++ libtirpc-0.2.0/src/svc.c 2009-06-27 10:18:05.491935140 +0200
  3. @@ -77,7 +77,9 @@ static struct svc_callout
  4. extern rwlock_t svc_lock;
  5. extern rwlock_t svc_fd_lock;
  6. +#ifdef HAVE_RPCSEC_GSS
  7. extern struct svc_auth_ops svc_auth_gss_ops;
  8. +#endif
  9. static struct svc_callout *svc_find (rpcprog_t, rpcvers_t,
  10. struct svc_callout **, char *);
  11. @@ -715,11 +717,13 @@ svc_getreq_common (fd)
  12. SVC_DESTROY (xprt);
  13. break;
  14. }
  15. +#ifdef HAVE_RPCSEC_GSS
  16. else if ((xprt->xp_auth != NULL) &&
  17. (xprt->xp_auth->svc_ah_ops != &svc_auth_gss_ops))
  18. {
  19. xprt->xp_auth = NULL;
  20. }
  21. +#endif
  22. }
  23. while (stat == XPRT_MOREREQS);
  24. }