Reset connman_network device pointer when it is no longer referenced
authorSamuel Ortiz <sameo@linux.intel.com>
Thu, 8 Apr 2010 22:19:07 +0000 (00:19 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Thu, 8 Apr 2010 22:24:07 +0000 (00:24 +0200)
commit1163049a2c9d1306a470294245fce20d06965761
tree96268d28ee2a7a872e77ed9ce069aebe910d7c18
parent3291e6583f5bdb4fc6037cd33a357890127c3a1d
Reset connman_network device pointer when it is no longer referenced

When removing all networks from a device, network->device pointers are
set to NULL even though the network is still referenced. This can lead
to segmentation faults when for example a service has several networks
and is being disconnected.
src/device.c
src/network.c