dect
/
asterisk
Archived
13
0
Fork 0

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
This commit is contained in:
russell 2005-07-08 14:27:39 +00:00
parent 92832d9f32
commit 73c653801f
1 changed files with 1 additions and 1 deletions

2
acl.c
View File

@ -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;
}