session: Handle connman_inet_ifname NULL return
authorDaniel Wagner <daniel.wagner@bmw-carit.de>
Thu, 21 Apr 2011 07:39:44 +0000 (09:39 +0200)
committerDaniel Wagner <daniel.wagner@bmw-carit.de>
Thu, 21 Apr 2011 13:02:28 +0000 (15:02 +0200)
commitb20491fbbc1ae8fc7fda1f0486e8b6ff7c2b3e67
treefe0c38be2043e07f5ef9362beeea860c958a047a
parent181df592e472fa5d9a49a8eed2f704a5854a1ddd
session: Handle connman_inet_ifname NULL return

connman_inet_ifname can return a NULL pointer. For example this
happens when all wifi interfaces are being removed because the wifi
dongle has been unplugged. The service is still valid at this point
but there is no device anymore. The kernel will then correctly return
NULL.
src/session.c