nfctool: Add a null pointer check in llcp_decode_cleanup
authorThierry Escande <thierry.escande@linux.intel.com>
Thu, 27 Jun 2013 10:04:00 +0000 (12:04 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Fri, 28 Jun 2013 08:06:42 +0000 (10:06 +0200)
commit88a60e5660c30dfdd799662428ce8e0865676066
treee3028b13b8305eff70b0cae1bcee070d5c3f80e7
parent8609e82c7aeff93f82abdff6bae6899c5b11b7e9
nfctool: Add a null pointer check in llcp_decode_cleanup

g_hash_table_destroy raises an assert when called with a null pointer.
connection_hash can be NULL when sniffer_init() fails before calling
llcp_init().
tools/nfctool/llcp-decode.c