X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fnet_socket.c;h=c2c1da968f459d43d0646053a974dec545b195a2;hb=76165488f8201a59e649b4eec02ee31398b3fb92;hp=a6fe54bcea57bafb45f9d87e6743357be2ed363f;hpb=046158a216e78a0412186ec8463157f6bce45d5d;p=tinc diff --git a/src/net_socket.c b/src/net_socket.c index a6fe54bc..c2c1da96 100644 --- a/src/net_socket.c +++ b/src/net_socket.c @@ -294,7 +294,8 @@ begin: } if(!c->outgoing->aip) { - freeaddrinfo(c->outgoing->ai); + if(c->outgoing->ai) + freeaddrinfo(c->outgoing->ai); c->outgoing->ai = NULL; goto begin; }