ofono: Fix potential crash
authorGuillaume Zajac <guillaume.zajac@linux.intel.com>
Wed, 27 Jun 2012 15:00:29 +0000 (17:00 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Sat, 30 Jun 2012 08:33:04 +0000 (10:33 +0200)
commit8beabba8c702d04e7de5ad04d6ecbcf5b91e24ce
tree5c6200b5b25bab4a211f06c6d0468b3ddc5c5cc1
parentc189a9ab8a085447b775c7fbeb0a8050751b7f84
ofono: Fix potential crash

If a dummy context is created, it might happen
that its index is equal to -1. In this particular case
the IP address has not been copied to context->address
during ipv4 extraction.
If we force from oFono a context activation, it will
make ConnMan crashing on set_connected().
plugins/ofono.c