make this call to socket() consistent with the rest of them in Asterisk
authorRussell Bryant <russell@russellbryant.com>
Fri, 8 Jul 2005 14:27:39 +0000 (14:27 +0000)
committerRussell Bryant <russell@russellbryant.com>
Fri, 8 Jul 2005 14:27:39 +0000 (14:27 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6057 65c4cc65-6c06-0410-ace0-fbb531ad65f3

acl.c

diff --git a/acl.c b/acl.c
index a22f456..7cd4cd1 100755 (executable)
--- a/acl.c
+++ b/acl.c
@@ -271,7 +271,7 @@ int ast_ouraddrfor(struct in_addr *them, struct in_addr *us)
        socklen_t slen;
 
        s = socket(PF_INET, SOCK_DGRAM, 0);
-       if (s == -1) {
+       if (s < 0) {
                ast_log(LOG_WARNING, "Cannot create socket\n");
                return -1;
        }