aboutsummaryrefslogtreecommitdiffstats
path: root/acl.c
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2005-07-08 14:27:39 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2005-07-08 14:27:39 +0000
commit73c653801fcb782f5763927e5778bdbcb4aea6b4 (patch)
treed95a97fece94aa2a01b134f4b4d8425f07e4d4f7 /acl.c
parent92832d9f32f99f5d23a187977ce1bcdcba0adf4c (diff)
make this call to socket() consistent with the rest of them in Asterisk
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6057 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'acl.c')
-rwxr-xr-xacl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/acl.c b/acl.c
index a22f45621..7cd4cd1ee 100755
--- 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;
}