diff --git a/src/i_tcp.c b/src/i_tcp.c
index df7b3cf2875dd373e1e121c342b012e9125759b1..6cfc8c7c233c6e9443d7167229396e0bdff3be72 100644
--- a/src/i_tcp.c
+++ b/src/i_tcp.c
@@ -690,7 +690,7 @@ static void SOCK_Send(void)
 		if (clientaddress[doomcom->remotenode].any.sa_family == AF_INET)
 			d = d4;
 #ifdef HAVE_IPV6
-		if (clientaddress[doomcom->remotenode].any.sa_family == AF_INET6)
+		else if (clientaddress[doomcom->remotenode].any.sa_family == AF_INET6)
 			d = d6;
 #endif
 		else