On Thu, 2013-03-07 at 18:13 +0200, Jukka Rissanen wrote:
> Hi,
> 
> While debugging weird pptp vpn issues (thanks lufie!), I noticed
> some races and bugs in the current vpn code.
> 
> In patch 1 we clear the data pointer (which points to ourselves)
> so that we do not accidentally try to access freed memory later.
> 
> The inotify generated two events (create + modify) for
> a .config file that is copied configuration directory. This
> caused weird issues with old code, mainly we first created
> config, then when modify event was received, we removed the
> justly created config and re-created it again. All this
> without any good reason. So the fix in patch 2 is just to
> ignore the create event and create the config in the modify
> event.
> 
> Patches 3 and 4 rename provider remove function so that it
> can be called from vpn plugin.
> 
> When a vpn connection is removed, vpnd will send remove signal
> which should cause provider removal. Old code just unreffed
> the provider which left the it hanging in the service list.
> This is fixed in patch 5.
> 
> Patches 7 and 8 try to make sure that if we get a removal
> signal from vpnd for already removed vpn connection, we do not
> try to accidentally access it.

Applied, thanks!

        Patrik
_______________________________________________
connman mailing list
[email protected]
http://lists.connman.net/listinfo/connman

Reply via email to