PERFORCE change 117642 for review

Roman Divacky rdivacky at FreeBSD.org
Sun Apr 8 10:47:39 UTC 2007


http://perforce.freebsd.org/chv.cgi?CH=117642

Change 117642 by rdivacky at rdivacky_witten on 2007/04/08 10:47:21

	In the case of illegal values just set msg.msg_control to NULL. it lets
	ping work too.
	
	Suggested by: rwatson

Affected files ...

.. //depot/projects/linuxolator/src/sys/compat/linux/linux_socket.c#14 edit

Differences ...

==== //depot/projects/linuxolator/src/sys/compat/linux/linux_socket.c#14 (text+ko) ====

@@ -1034,7 +1034,7 @@
 	 * checking but now it lets ping work.
 	 */
 	if (msg.msg_control && msg.msg_controllen == 0)
-	   	msg.msg_controllen = sizeof(struct cmsghdr);
+		msg.msg_control = NULL;
 
 	if (error)
 		return (error);


More information about the p4-projects mailing list