Browse code

core:forward.c Fixed small error caused by unlikely usage.

Marius Zbihlei authored on 04/11/2010 15:14:56
Showing 1 changed files
... ...
@@ -175,7 +175,7 @@ retry:
175 175
 	if( !mhomed_sock_cache_disabled ){
176 176
 		/* some Linux kernel versions (all?) along with other UNIXes don't re-bound the sock if already bound */
177 177
 		/* to un-bound a socket set sin_family to AF_UNSPEC and zero out the rest*/
178
-		if (unlikely(connect(*temp_sock, &uncon.s, sockaddru_len(uncon))) < 0)
178
+		if (unlikely(connect(*temp_sock, &uncon.s, sockaddru_len(uncon)) < 0))
179 179
 				mhomed_sock_cache_disabled = 1;
180 180
 	}
181 181