Skip to content

del_client_interface (and others) send duplicate ubus messages to wpad #261

@russdill

Description

@russdill

ubus_invoke(ctx, id, "del_client", b.head, NULL, NULL, timeout * 1000);

A common pattern in utils/ubus.c is:

    list_for_each_entry(sub, &hostapd_sock_list, list)
    {   
        if (sub->subscribed) {
            int timeout = 1;
            ubus_invoke(ctx, id, "del_client", b.head, NULL, NULL, timeout * 1000);
        }
    }

It seems to be a copy/paste from:

    list_for_each_entry(sub, &hostapd_sock_list, list)
    {
        if (sub->subscribed) {
            int timeout = 1;
            ubus_invoke(ctx, sub->id, "del_client", b.head, NULL, NULL, timeout * 1000);
        }
    }

Its likely that it just needs to be changed to:

        int timeout = 1;
        ubus_invoke(ctx, id, "del_client", b.head, NULL, NULL, timeout * 1000);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions