diff options
author | Felix Fietkau <nbd@nbd.name> | 2021-08-09 12:56:54 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2021-09-08 12:25:31 +0200 |
commit | a72457b61df045d3c499a6211362b751710590d7 (patch) | |
tree | 08c4402c96abed269eb4a9644943874682afa36b | |
parent | ef038488edc35f4f671c09276cc3fb4ef706ae34 (diff) | |
download | ubus-a72457b61df045d3c499a6211362b751710590d7.tar.gz |
libubus: increase stack depth for processing obj msgs
Avoid running into an issue where issuing a request from an obj message
can lead to recursive message processing and list corruption
Signed-off-by: Felix Fietkau <nbd@nbd.name>
-rw-r--r-- | libubus.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -103,7 +103,9 @@ ubus_process_msg(struct ubus_context *ctx, struct ubus_msghdr_buf *buf, int fd) break; } + ctx->stack_depth++; ubus_process_obj_msg(ctx, buf, fd); + ctx->stack_depth--; break; case UBUS_MSG_MONITOR: if (ctx->monitor_cb) |