Fix ACL issue, update CREDITS
authorMark Spencer <markster@digium.com>
Wed, 9 Apr 2003 13:14:50 +0000 (13:14 +0000)
committerMark Spencer <markster@digium.com>
Wed, 9 Apr 2003 13:14:50 +0000 (13:14 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@797 65c4cc65-6c06-0410-ace0-fbb531ad65f3

CREDITS
acl.c

diff --git a/CREDITS b/CREDITS
index 4ee9df7..2466d93 100755 (executable)
--- a/CREDITS
+++ b/CREDITS
@@ -39,6 +39,9 @@ Ross Finlayson - Dynamic RTP payload support
 Mahmut Fettahlioglu - Audio recording, music-on-hold changes, alaw file
                format, and various fixes. Can be contacted at mahmut@oa.com.au
 
+=== OTHER CONTRIBUTIONS ===
+John Todd - Monkey sounds and associated teletorture prompt
+
 === OTHER SOURCE CODE IN ASTERISK ===
 
 I did not implement the codecs in asterisk.  Here is the copyright on the
diff --git a/acl.c b/acl.c
index 60d7a36..6a4f4fd 100755 (executable)
--- a/acl.c
+++ b/acl.c
@@ -118,6 +118,6 @@ int ast_get_ip(struct sockaddr_in *sin, char *value)
 
 int inaddrcmp(struct sockaddr_in *sin1, struct sockaddr_in *sin2)
 {
-       return ((sin1->sin_addr.s_addr == sin2->sin_addr.s_addr )
-                       && (sin1->sin_port == sin2->sin_port));
+       return ((sin1->sin_addr.s_addr != sin2->sin_addr.s_addr )
+                       || (sin1->sin_port != sin2->sin_port));
 }