[sr-dev] git:master: core:forward.c Fixed small error caused by unlikely usage.

Marius Zbihlei marius.zbihlei at 1and1.ro
Thu Nov 4 16:18:15 CET 2010


Module: sip-router
Branch: master
Commit: 6cfee82666b78400d5ff15c49aac1441cfbbaaf6
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=6cfee82666b78400d5ff15c49aac1441cfbbaaf6

Author: Marius Zbihlei <marius.zbihlei at 1and1.ro>
Committer: Marius Zbihlei <marius.zbihlei at 1and1.ro>
Date:   Thu Nov  4 17:14:56 2010 +0200

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

---

 forward.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/forward.c b/forward.c
index 3d7aed1..175f54b 100644
--- a/forward.c
+++ b/forward.c
@@ -175,7 +175,7 @@ retry:
 	if( !mhomed_sock_cache_disabled ){
 		/* some Linux kernel versions (all?) along with other UNIXes don't re-bound the sock if already bound */
 		/* to un-bound a socket set sin_family to AF_UNSPEC and zero out the rest*/
-		if (unlikely(connect(*temp_sock, &uncon.s, sockaddru_len(uncon))) < 0)
+		if (unlikely(connect(*temp_sock, &uncon.s, sockaddru_len(uncon)) < 0))
 				mhomed_sock_cache_disabled = 1;
 	}
 




More information about the sr-dev mailing list