summaryrefslogtreecommitdiff
path: root/lib9p/srv.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib9p/srv.c')
-rw-r--r--lib9p/srv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib9p/srv.c b/lib9p/srv.c
index 259ef04..d5b643d 100644
--- a/lib9p/srv.c
+++ b/lib9p/srv.c
@@ -562,7 +562,7 @@ static void handle_Tattach(struct _lib9p_srv_req *ctx,
LINUX_EOPNOTSUPP, "TODO: auth not implemented");
return;
} else {
- if (req->afid != LIB9P_NOFID) {
+ if (req->afid != LIB9P_FID_NOFID) {
lib9p_error(&ctx->ctx.basectx,
LINUX_EACCES, "FID provided as auth-file, but no auth-file is required");
return;