+ else if (!ubus_push_object_type(&b, obj->type)) return UBUS_STATUS_INVALID_ARGUMENT; Memory leak, you have to free b here. } - if (ubus_start_request(ctx, &req, b.head, UBUS_MSG_ADD_OBJECT, 0) < 0) + if (ubus_start_request(ctx, &req, b.head, UBUS_MSG_ADD_OBJECT, ...
uc_value_push(ucv_get(ucv_string_new(hapd->conf->iface))); snprintf(addr, sizeof(addr), MACSTR, MAC2STR(sta->addr)); val = ucv_string_new(addr); uc_value_push(ucv_get(val)); val = wpa_ucode_call(2); cur = ucv_object_get(val, "psk", NULL); if (ucv_type(cur) == ...
- else if (!ubus_push_object_type(obj->type)) + else if (!ubus_push_object_type(&b, obj->type)) return UBUS_STATUS_INVALID_ARGUMENT; } - if (ubus_start_request(ctx, &req, b.head, UBUS_MSG_ADD_OBJECT, 0) < 0) + if (ubus_start_request(ctx, &req, b.head, UBUS_MSG_ADD...
uc_value_push(ucv_get(ucv_string_new(hapd->conf->iface))); snprintf(addr, sizeof(addr), MACSTR, MAC2STR(sta->addr)); val = ucv_string_new(addr); uc_value_push(ucv_get(val)); val = wpa_ucode_call(2); cur = ucv_object_get(val, "psk", NULL); if (ucv_type(cur) == ...
uc_value_push(ucv_get(val)); val = ucv_object_new(vm); if (sta->psk_idx) ucv_object_add(val, "psk_idx", ucv_int64_new(sta->psk_idx - 1)); uc_value_push(ucv_get(val)); val = wpa_ucode_call(3); if (ucv_type(val) != UC_OBJECT) goto out; cur = ucv_object_get(va...