connection: Avoid stale memory access
authorJukka Rissanen <jukka.rissanen@linux.intel.com>
Wed, 14 Mar 2012 15:28:54 +0000 (17:28 +0200)
committerPatrik Flykt <patrik.flykt@linux.intel.com>
Mon, 19 Mar 2012 11:08:53 +0000 (13:08 +0200)
commit1a406c25cfc5a08905dbadc7913d4b3998fede7c
tree464263ee4fe45ac2b21d2778746b176e1af07c4a
parenta7d631e9612e87212ff97860b44089ccee46aed7
connection: Avoid stale memory access

Get the active gateway pointer only after the gateway hash
has been manipulated by add_gateway(). It is possible that
we are accessing stale pointer otherwise.
src/connection.c