make this call to socket() consistent with the rest of them in Asterisk

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6057 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Russell Bryant
2005-07-08 14:27:39 +00:00
parent c65d75dac5
commit b8e8cdc968

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