From 82109868b5acd55e452569c565ab6dc090ea1de0 Mon Sep 17 00:00:00 2001 From: Sven-Haegar Koch Date: Sun, 29 May 2011 21:35:31 +0200 Subject: [PATCH] src/net_socket.c bind_to_address(): Use after free in error path. --- src/net_socket.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.5