Navigation Menu

Skip to content

Commit

Permalink
Merge branch 'jb48199' into 'master'
Browse files Browse the repository at this point in the history
Cancel agent requests when removing VPN plugin

See merge request mer-core/connman!302
  • Loading branch information
LaakkonenJussi committed Dec 2, 2020
2 parents d987125 + f2088e6 commit 214a2f3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions connman/vpn/vpn-provider.c
Expand Up @@ -3336,6 +3336,12 @@ void vpn_provider_driver_unregister(struct vpn_provider_driver *driver)
provider->driver->type == driver->type &&
g_strcmp0(provider->driver->name,
driver->name) == 0) {
/*
* Cancel VPN agent request to avoid segfault at
* shutdown as the callback, if set can point to a
* function in the plugin that is to be removed.
*/
connman_agent_cancel(provider);
provider->driver = NULL;
}
}
Expand Down

0 comments on commit 214a2f3

Please sign in to comment.