summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke T. Shumaker <lukeshu@lukeshu.com>2025-04-03 16:16:33 -0600
committerLuke T. Shumaker <lukeshu@lukeshu.com>2025-04-05 21:34:27 -0600
commit9aa3990e50efffc8a2f76e6c55ad769e5f711602 (patch)
treec1656dfbc348f3f69cf7ca646bb5bfc58e7fb93f
parent213af5e3cf79cfef46fc4f277811dc4fcac8b751 (diff)
lib9p: srv: Whoops, add a missing `return`
-rw-r--r--lib9p/srv.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib9p/srv.c b/lib9p/srv.c
index bfeb06f..6e6a91b 100644
--- a/lib9p/srv.c
+++ b/lib9p/srv.c
@@ -903,6 +903,7 @@ static void handle_Topen(struct _lib9p_srv_req *ctx,
if (!srv_util_check_perm(ctx, &stat, perm_bits)) {
lib9p_error(&ctx->ctx.basectx,
LINUX_EACCES, "permission denied");
+ return;
}
/* Actually make the call. */