]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Socket level option is SOL_SOCKET, not SO_SOCKET.
authorTilghman Lesher <tilghman@meg.abyt.es>
Mon, 11 Jan 2010 23:19:51 +0000 (23:19 +0000)
committerTilghman 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

index f16c695f06fa73811754e539885ad5f07b49d68c..8069e723d0792b84ed3871ccbdc2cbb00df2e69f 100644 (file)
@@ -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) {