connection: Check gateway_hash value before call update_order()
authorMartin Xu <martin.xu@intel.com>
Tue, 22 Feb 2011 06:23:26 +0000 (14:23 +0800)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 22 Feb 2011 08:19:33 +0000 (00:19 -0800)
commitc0b5b4849f8c8126c31bc585d6a8d596b421aec8
tree6a9c8a751f7b3248cdd85da04578303a0492d0c8
parent00cdcda794b6fea0754ec2653865476c698ce089
connection: Check gateway_hash value before call update_order()

When exit from ConnMan, __connman_connection_cleanup() is called
before __connman_service_cleanup() which then calls update_order().
__connman_connection_cleanup() sets gateway_hash as NULL, so update_order()
will access NULL hash and causes GLib-CRITICAL abort
src/connection.c