On Mon, 2012-10-01 at 14:02 +0300, Jukka Rissanen wrote:
> 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,

Yep, Jukka and I just discovered that server->channel can be NULL for
some reason. Now we just need to figure out why and what the fix is...

Cheers,

        Patrik


_______________________________________________
connman mailing list
[email protected]
http://lists.connman.net/listinfo/connman

Reply via email to