From: Niklas Hofmann Date: Thu, 31 Jul 2014 01:21:53 +0000 (+0200) Subject: ignore unknown address types (just in case) X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=b0b53c12981e7009aa2d964f06521ed1bb0ce8f6;p=meshlink ignore unknown address types (just in case) --- diff --git a/src/discovery.c b/src/discovery.c index a7b36c48..8f0f925e 100644 --- a/src/discovery.c +++ b/src/discovery.c @@ -107,7 +107,10 @@ static void discovery_resolve_callback( } // @TODO: aquire mutex? - meshlink_hint_address(mesh, node->name, &naddr); + if(naddr.ss_family == AF_INET || naddr.ss_family == AF_INET6) + { + meshlink_hint_address(mesh, node->name, (struct sockaddr*)&naddr); + } } else {