[Asterisk-cvs] asterisk/channels chan_sip.c,1.600,1.601

markster at lists.digium.com markster at lists.digium.com
Mon Dec 27 08:41:33 CST 2004


Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv4926/channels

Modified Files:
	chan_sip.c 
Log Message:
Fix inversion error on addrcmp (bug #3155)


Index: chan_sip.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v
retrieving revision 1.600
retrieving revision 1.601
diff -u -d -r1.600 -r1.601
--- chan_sip.c	26 Dec 2004 18:08:06 -0000	1.600
+++ chan_sip.c	27 Dec 2004 13:36:34 -0000	1.601
@@ -1156,7 +1156,7 @@
 {
 	/* We know name is the first field, so we can cast */
 	struct sip_peer *p = (struct sip_peer *)name;
-	return 	(!inaddrcmp(&p->addr, sin) || 
+	return 	!(!inaddrcmp(&p->addr, sin) || 
 					(p->insecure &&
 					(p->addr.sin_addr.s_addr == sin->sin_addr.s_addr)));
 }




More information about the svn-commits mailing list