[asterisk-commits] tilghman: trunk r239245 - /trunk/res/res_pktccops.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Jan 11 17:19:54 CST 2010


Author: tilghman
Date: Mon Jan 11 17:19:51 2010
New Revision: 239245

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=239245
Log:
Socket level option is SOL_SOCKET, not SO_SOCKET

Modified:
    trunk/res/res_pktccops.c

Modified: trunk/res/res_pktccops.c
URL: http://svnview.digium.com/svn/asterisk/trunk/res/res_pktccops.c?view=diff&rev=239245&r1=239244&r2=239245
==============================================================================
--- trunk/res/res_pktccops.c (original)
+++ trunk/res/res_pktccops.c Mon Jan 11 17:19:51 2010
@@ -678,7 +678,7 @@
 		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) {




More information about the asterisk-commits mailing list