Seeing issues with NTP

2015-07-21 Thread Naveen Singh
Hi All In our testing of new connman (version 1.29) we do see following error print sometimes (This is happening very rarely and I do not have any easy way to reproduce it at will): 2015-07-17 01:35:20.00 daemon.err connmand[321]: Invalid packet timestamp from time server After this print we

[PATCH 5/6] vpn: Set disconnected VPN service to IDLE

2015-07-21 Thread Jukka Rissanen
Setting the state of the disconnected VPN service to IDLE instead of leaving it to DISCONNECTED. Now it behaves the same way as the service that is disconnected by ConnMan daemon. Reported by Jaakko Hannikainen. --- src/provider.c | 4 1 file changed, 4 insertions(+) diff --git

[PATCH 2/6] vpn: NULL dbus message in plugin input handler

2015-07-21 Thread Jukka Rissanen
If the user cancelled the agent request, then we might have NULL reply in the input handler. If we try to pass this kind of reply to dbus library, it will normally just abort. So catch this and do not pass NULL message to dbus_message_get_type(). This affects openconnect, l2tp and pptp input

[PATCH 4/6] vpn: Pass original sender to connman-vpnd when connecting

2015-07-21 Thread Jukka Rissanen
We need to give the original DBus sender to connman-vpnd when connmand is proxying the connect request. Otherwise the possible agent request goes to default vpn agent instead of the correct agent that initiated the connect request. Reported by Jaakko Hannikainen. --- include/provider.h | 3 ++-

[PATCH 6/6] vpn: Provider state was not updated after an error

2015-07-21 Thread Jukka Rissanen
This fixes following scenario: - user tries to connect to a VPN - VPN requests some additional data via agent interface - user cancels the agent request - VPN connection is terminated - VPN service goes back to idle - user tries to connect to a VPN again - VPN does not ask anything from the user

[PATCH 1/6] agent: Do not access NULL pointer in cancelling

2015-07-21 Thread Jukka Rissanen
If agent API user (in this case connman-vpnd) has not set the memory allocation callback (context_ref pointer), then the requst-driver pointer will be NULL and we will get a segfault in this usage scenario: $ connmanctl connmanctl vpnagent on connmanctl connect vpn_service VPN Agent RequestInput

[PATCH 3/6] vpn: Clear any pending DNS resolver query when quitting

2015-07-21 Thread Jukka Rissanen
This is a special case that happens if we for example stop ConnMan while there is a pending DNS resolver going on. Fixing this minor memory leak helps to catch the more serious leaks in ConnMan. Reported by Jaakko Hannikainen. --- vpn/vpn-provider.c | 18 ++ 1 file changed, 18

[PATCH 0/6] VPN fixes

2015-07-21 Thread Jukka Rissanen
Hi, these patches fix multiple issues in VPN connectivity. Thanks to Jaakko Hannikainen for finding these issues. Patch 1 fixes a crash issue in connman-vpnd. User is able to cause segfault via connmanctl. Another serious issue is found in patch 2 where dbus library will abort if given invalid

[PATCH] service: Send hidden wifi SSID request to sender

2015-07-21 Thread Jaakko Hannikainen
Previously when querying the SSID from client through the agent api, the request was sent to default agent rather than sender, as get_dbus_sender returns NULL if service-pending is NULL, causing a request to the default agent. --- src/service.c | 5 ++--- 1 file changed, 2 insertions(+), 3