mirror of
https://dev.iopsys.eu/bbf/bbfdm.git
synced 2025-12-10 07:44:39 +01:00
Fix empty ubus output
This commit is contained in:
parent
f08359f40d
commit
3725024ea0
1 changed files with 5 additions and 1 deletions
|
|
@ -72,10 +72,14 @@ static void fill_optional_data(bbfdm_data_t *data, struct blob_attr *msg)
|
||||||
struct blob_attr *attr;
|
struct blob_attr *attr;
|
||||||
size_t rem;
|
size_t rem;
|
||||||
|
|
||||||
if (!data || !msg)
|
if (!data)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
data->bbf_ctx.dm_type = BBFDM_BOTH;
|
data->bbf_ctx.dm_type = BBFDM_BOTH;
|
||||||
|
|
||||||
|
if (!msg)
|
||||||
|
return;
|
||||||
|
|
||||||
blobmsg_for_each_attr(attr, msg, rem) {
|
blobmsg_for_each_attr(attr, msg, rem) {
|
||||||
|
|
||||||
if (is_str_eq(blobmsg_name(attr), "proto")) {
|
if (is_str_eq(blobmsg_name(attr), "proto")) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue