projects
/
project
/
ubus.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ubusd: fix id lookup of objects with path and no methods
[project/ubus.git]
/
libubus.c
diff --git
a/libubus.c
b/libubus.c
index
d52faff
..
8163ff7
100644
(file)
--- a/
libubus.c
+++ b/
libubus.c
@@
-294,6
+294,7
@@
int ubus_connect_ctx(struct ubus_context *ctx, const char *path)
avl_init(&ctx->objects, ubus_cmp_id, false, NULL);
if (ubus_reconnect(ctx, path)) {
free(ctx->msgbuf.data);
+ ctx->msgbuf.data = NULL;
return -1;
}