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>
This commit is contained in:
Felix Fietkau 2021-08-09 12:56:54 +02:00
parent ef038488ed
commit a72457b61d

View file

@ -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)