summaryrefslogtreecommitdiff
path: root/src/svc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/svc.c')
-rw-r--r--src/svc.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/svc.c b/src/svc.c
index a61c14b..cc65e6a 100644
--- a/src/svc.c
+++ b/src/svc.c
@@ -77,7 +77,9 @@ static struct svc_callout
extern rwlock_t svc_lock;
extern rwlock_t svc_fd_lock;
+#ifdef HAVE_LIBGSSAPI
extern struct svc_auth_ops svc_auth_gss_ops;
+#endif
static struct svc_callout *svc_find (rpcprog_t, rpcvers_t,
struct svc_callout **, char *);
@@ -715,9 +717,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))
- {
+ else if ((xprt->xp_auth != NULL)
+#ifdef HAVE_LIBGSSAPI
+ && (xprt->xp_auth->svc_ah_ops != &svc_auth_gss_ops)
+#endif
+ ) {
xprt->xp_auth = NULL;
}
}