Fixes BMC#25726
---
 src/dnsproxy.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/dnsproxy.c b/src/dnsproxy.c
index 719c170..fd367a5 100644
--- a/src/dnsproxy.c
+++ b/src/dnsproxy.c
@@ -1505,6 +1505,12 @@ static int ns_resolv(struct server_data *server, struct 
request_data *req,
                }
        }
 
+       if (server->channel == NULL) {
+               connman_error("Server channel missing for %s at %s",
+                       server->server, server->interface);
+               return -EINVAL;
+       }
+
        sk = g_io_channel_unix_get_fd(server->channel);
 
        err = sendto(sk, request, req->request_len, MSG_NOSIGNAL,
-- 
1.7.11.4

_______________________________________________
connman mailing list
connman@connman.net
http://lists.connman.net/listinfo/connman

Reply via email to