Skip to content
Snippets Groups Projects
Commit b8e8cdc9 authored by Russell Bryant's avatar Russell Bryant
Browse files

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
parent c65d75da
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment