dnsproxy: Do not unref g_io_channel if we know it is null
authorJukka Rissanen <jukka.rissanen@linux.intel.com>
Fri, 26 Apr 2013 12:51:16 +0000 (15:51 +0300)
committerPatrik Flykt <patrik.flykt@linux.intel.com>
Tue, 30 Apr 2013 10:43:20 +0000 (13:43 +0300)
commitf795e365ecca6781cc99bd634f7a7e05bef1de95
tree8ff28c9f7eb98dbde40496e1c137abf6e84b0b24
parentad3d715a8da076ab52f12b161961db9fdad13b93
dnsproxy: Do not unref g_io_channel if we know it is null

Currently tethering does not support IPv6 so its listener is
not created and is null. This will cause following output

connmand[18363]: src/dnsproxy.c:destroy_tcp_listener() index 31
(connmand:18363): GLib-CRITICAL **: g_io_channel_unref: assertion `channel != NULL' failed
connmand[18363]: src/dnsproxy.c:destroy_udp_listener() index 31
(connmand:18363): GLib-CRITICAL **: g_io_channel_unref: assertion `channel != NULL' failed
src/dnsproxy.c