diff options
| author | Felix Fietkau | 2025-08-09 13:55:11 +0000 |
|---|---|---|
| committer | Felix Fietkau | 2025-08-09 13:55:14 +0000 |
| commit | 1905e096a8b722e67733cd4088026f571b27e521 (patch) | |
| tree | 2f95c7c71ca79289af1bec2059a03668d9fdc2d7 | |
| parent | 9389775ceb4702c82bd62b79cf17b0359c63e527 (diff) | |
| download | rpcd-1905e096a8b722e67733cd4088026f571b27e521.tar.gz | |
ucode: adjust for new ext resource type
ucv_resource_dataptr always returns null for resources with embedded data.
Signed-off-by: Felix Fietkau <nbd@nbd.name>
| -rw-r--r-- | ucode.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -449,7 +449,7 @@ rpc_ucode_script_call(struct ubus_context *ctx, struct ubus_object *obj, res = uc_vm_stack_pop(&script->vm); /* The handler function invoked a nested aync ubus request and returned it */ - if (ucv_resource_dataptr(res, "ubus.deferred")) { + if (ucv_resource_data(res, "ubus.deferred")) { /* Install guard timer in case the reply callback is never called */ callctx->timeout.cb = rpc_ucode_request_timeout; uloop_timeout_set(&callctx->timeout, request_timeout); |