projects
/
project
/
rpcd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9f4b86e
)
ucode: adjust for new ext resource type
author
Felix Fietkau
<nbd@nbd.name>
Sat, 9 Aug 2025 13:55:11 +0000
(15:55 +0200)
committer
Hauke Mehrtens
<hauke@hauke-m.de>
Sat, 23 Aug 2025 13:50:29 +0000
(15:50 +0200)
ucv_resource_dataptr always returns null for resources with embedded data.
Signed-off-by: Felix Fietkau <nbd@nbd.name>
(cherry picked from commit
1905e096a8b722e67733cd4088026f571b27e521
)
ucode.c
patch
|
blob
|
history
diff --git
a/ucode.c
b/ucode.c
index 5c84776d951519c9810cb4d4128064c938ae8db7..86a732d04021539f48e313a86cae0637225b7494 100644
(file)
--- a/
ucode.c
+++ b/
ucode.c
@@
-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_data
ptr
(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);