Browse Source

Bugfix: RPC: Downgrade mcast_sock reference for 3.5.x

Luke Dashjr 11 years ago
parent
commit
783f99163d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      api.c

+ 1 - 1
api.c

@@ -3866,7 +3866,7 @@ static void mcast()
 
 
 	mcast_sock = socket(AF_INET, SOCK_DGRAM, 0);
 	mcast_sock = socket(AF_INET, SOCK_DGRAM, 0);
 
 
-	set_cloexec_socket(*mcastsock, true);
+	set_cloexec_socket(mcast_sock, true);
 	
 	
 	int optval = 1;
 	int optval = 1;
 	if (SOCKETFAIL(setsockopt(mcast_sock, SOL_SOCKET, SO_REUSEADDR, (void *)(&optval), sizeof(optval)))) {
 	if (SOCKETFAIL(setsockopt(mcast_sock, SOL_SOCKET, SO_REUSEADDR, (void *)(&optval), sizeof(optval)))) {