dpp: fix removed dpp_reset in Stop()

It seems in my patch reordering both stop methods lost the actual
call to dpp_reset().
This commit is contained in:
James Prestwood 2023-11-09 09:25:22 -08:00 committed by Denis Kenzior
parent 29778733e5
commit 2f4c09def0
1 changed files with 8 additions and 0 deletions

View File

@ -3950,9 +3950,13 @@ static struct l_dbus_message *dpp_dbus_stop(struct l_dbus *dbus,
{
struct dpp_sm *dpp = user_data;
l_debug("");
if (dpp->interface != DPP_INTERFACE_DPP)
return dbus_error_not_found(message);
dpp_reset(dpp);
return l_dbus_message_new_method_return(message);
}
@ -4264,9 +4268,13 @@ static struct l_dbus_message *dpp_dbus_pkex_stop(struct l_dbus *dbus,
{
struct dpp_sm *dpp = user_data;
l_debug("");
if (dpp->interface != DPP_INTERFACE_PKEX)
return dbus_error_not_found(message);
dpp_reset(dpp);
return l_dbus_message_new_method_return(message);
}