service: Changing default service was not correctly checked
authorJukka Rissanen <jukka.rissanen@linux.intel.com>
Thu, 19 Apr 2012 12:29:53 +0000 (15:29 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 19 Apr 2012 12:39:20 +0000 (14:39 +0200)
commit9a7efe890445f2036bffb1c45f6f945d472bada8
tree0fc925fae08ce69832a69296d308b48cbe2b3789
parent4d4034d013c14ff303bd21b9cf5035001f2fd798
service: Changing default service was not correctly checked

Let the default_changed() function check whether the default service is
really changed as it is doing it correctly every time.

The extra check in the __connman_service_indicate_default() function is
causing problems if the user is moving services around. Then we might be
using the old DNS service data because DNS code did not get information
that default service was changed.

Fixes BMC#25027
src/service.c