gupnp_service_proxy_call_action() doesn't return errors
Seems that the sync version of gupnp_service_proxy_call_action
doesn't return the errors back.
The call to that specific action return an error but it is never exposed here:
gupnp_service_proxy_call_action(wan_service,
action,
NULL,
&local_error);
if (local_error != NULL) {
goto out;
}
gupnp_service_proxy_action_get_result (action, &local_error, NULL);
gupnp_service_proxy_action_unref (action);
Here local_error
it's always NULL even if the action it's refused. In gupnp-tools, the action it's invoked in async mode and the error it's correcly exposed.
The non-working code it's the following: https://gitlab.gnome.org/DnaX/upnp-router-control/-/blob/master/src/urc-upnp.c line 98