projects
/
project
/
qosify.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
580d2cc
)
ubus: fix a use-after-free bug
author
Felix Fietkau
<nbd@nbd.name>
Thu, 10 Feb 2022 19:55:02 +0000
(20:55 +0100)
committer
Felix Fietkau
<nbd@nbd.name>
Thu, 10 Feb 2022 20:03:39 +0000
(21:03 +0100)
Initialize blob_buf before issuing a network interface status call
Signed-off-by: Felix Fietkau <nbd@nbd.name>
ubus.c
patch
|
blob
|
history
diff --git
a/ubus.c
b/ubus.c
index d2d1150458775008e0fb44c17efcfff10a0d2c40..644df1a8533bc4ec53c680d95a92c70a0a7b1182 100644
(file)
--- a/
ubus.c
+++ b/
ubus.c
@@
-419,6
+419,7
@@
int qosify_ubus_check_interface(const char *name, char *ifname, int ifname_len)
if (ubus_lookup_id(&conn.ctx, obj_name, &id))
return -1;
+ blob_buf_init(&b, 0);
ubus_invoke(&conn.ctx, id, "status", b.head, netifd_if_cb, &req, 1000);
if (!ifname[0])