diff options
author | Russell Bryant <russell@russellbryant.com> | 2005-07-08 14:27:39 +0000 |
---|---|---|
committer | Russell Bryant <russell@russellbryant.com> | 2005-07-08 14:27:39 +0000 |
commit | b8e8cdc96821c45d349b242ba55142368b010716 (patch) | |
tree | d95a97fece94aa2a01b134f4b4d8425f07e4d4f7 /acl.c | |
parent | c65d75dac5bbb1ac8beef59f68f1f1077b6c13b2 (diff) |
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
Diffstat (limited to 'acl.c')
-rwxr-xr-x | acl.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |