X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Fadns.c;h=cb9611e1594b246ab71f8364ef624d33d2ddf3b4;hb=8e4f6238558c28cd05bd580cc947d7178d2bac90;hp=01989ac5c71bdeb24602358841cfb5d5555dece6;hpb=91169c529883e08d7a0245b709483a22a83245ad;p=meshlink diff --git a/src/adns.c b/src/adns.c index 01989ac5..cb9611e1 100644 --- a/src/adns.c +++ b/src/adns.c @@ -184,6 +184,8 @@ struct addrinfo *adns_blocking_request(meshlink_handle_t *mesh, char *host, char info->host = host; info->serv = serv; info->socktype = socktype; + pthread_mutex_init(&info->mutex, NULL); + pthread_cond_init(&info->cond, NULL); struct timespec deadline; clock_gettime(CLOCK_REALTIME, &deadline);