dnsproxy: Return proper return code if listener_table is missing
authorJukka Rissanen <jukka.rissanen@linux.intel.com>
Tue, 23 Apr 2013 15:38:33 +0000 (18:38 +0300)
committerPatrik Flykt <patrik.flykt@linux.intel.com>
Fri, 26 Apr 2013 09:36:44 +0000 (12:36 +0300)
commit5641eea3a2f3c699e8f93b1a21dc1d8aac6db92c
tree1c6376670d2333c581e0d886db23e05c65c659d0
parente7680555f2b5fe7e2cfeaebe17ac61d87e7717f5
dnsproxy: Return proper return code if listener_table is missing

The listener_table can be NULL if we have started connman with -r
option. Because we return < 0 value to caller in this case,
the caller, e.g. the tethering code, has a possibility to change
its functionality, e.g. the tethering code can fall back to some
other DNS servers.
src/dnsproxy.c