Fix ConnMan crash while disable wifi device
authorMohamed Abbas <mohamed.abbas@intel.com>
Wed, 22 Sep 2010 10:25:09 +0000 (12:25 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Wed, 22 Sep 2010 13:39:48 +0000 (15:39 +0200)
commitceee07de9cc82211c54168d3c0df7a69b1ab2398
treefa8dc762c0c550c56791afa8bdd3100942ba7ebc
parentb0a9340453754a2485afe9c3696866b0276bb647
Fix ConnMan crash while disable wifi device

When calling unregister_network() ConnMan sets the network->device pointer
to NULL. That is fine with ESSIDs formed by 1 AP. Otherwise, the eventual
call to __connman_device_decrease_connections() leads to a crash as the
device pointer is NULL.

Fixes BMC #6772
src/device.c