projects
/
asterisk/asterisk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3895799
)
Socket level option is SOL_SOCKET, not SO_SOCKET.
author
Tilghman Lesher
<tilghman@meg.abyt.es>
Mon, 11 Jan 2010 23:19:51 +0000
(23:19 +0000)
committer
Tilghman Lesher
<tilghman@meg.abyt.es>
Mon, 11 Jan 2010 23:19:51 +0000
(23:19 +0000)
(issue #16580)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@239245
65c4cc65
-6c06-0410-ace0-
fbb531ad65f3
res/res_pktccops.c
patch
|
blob
|
history
diff --git
a/res/res_pktccops.c
b/res/res_pktccops.c
index
f16c695
..
8069e72
100644
(file)
--- a/
res/res_pktccops.c
+++ b/
res/res_pktccops.c
@@
-678,7
+678,7
@@
static int cops_connect(char *host, char *port)
flags = fcntl(sfd, F_GETFL);
fcntl(sfd, F_SETFL, flags | O_NONBLOCK);
#ifdef HAVE_SO_NOSIGPIPE
- setsockopt(sfd, SO_SOCKET, SO_NOSIGPIPE, &trueval, sizeof(trueval));
+ setsockopt(sfd, SOL_SOCKET, SO_NOSIGPIPE, &trueval, sizeof(trueval));
#endif
connect(sfd, rp->ai_addr, rp->ai_addrlen);
if (sfd == -1) {