From 63a8840ff755de24d7a205f7ccc07ad0c68dc844 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sun, 8 Sep 2013 04:22:29 +0000 Subject: [PATCH] net: Remove unnecessary condition in makesock_addrinfo(). This code is executed only if src != NULL, which implies dst == NULL. --- net.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net.c b/net.c index d00895f5..205041fd 100644 --- a/net.c +++ b/net.c @@ -460,8 +460,8 @@ static int makesock_addrinfo(unsigned l4type, bool passive, struct addrinfo *ai, close(sockfd); goto get_next_src; } - if (!dst) /* bind-only completed successfully */ - break; + /* bind completed successfully */ + break; } if (dst && connect(sockfd, dst->ai_addr, dst->ai_addrlen) == 0) -- 2.39.5