From: Sven-Haegar Koch Date: Sun, 29 May 2011 19:35:31 +0000 (+0200) Subject: src/net_socket.c bind_to_address(): Use after free in error path. X-Git-Tag: release-1.1pre1~35 X-Git-Url: https://git.tinc-vpn.org/git/browse?a=commitdiff_plain;h=82109868b5acd55e452569c565ab6dc090ea1de0;p=tinc src/net_socket.c bind_to_address(): Use after free in error path. --- diff --git a/src/net_socket.c b/src/net_socket.c index 40120962..db7fb5c1 100644 --- a/src/net_socket.c +++ b/src/net_socket.c @@ -137,9 +137,9 @@ static bool bind_to_address(connection_t *c) { status = getaddrinfo(node, /* service = */ NULL, &ai_hints, &ai_list); if(status) { - free(node); logger(LOG_WARNING, "Error looking up %s port %s: %s", node, "any", gai_strerror(status)); + free(node); return false; } assert(ai_list != NULL);