patch-2.1.22 linux/include/net/scm.h

Next file: linux/include/net/sock.h
Previous file: linux/include/net/route.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.21/linux/include/net/scm.h linux/include/net/scm.h
@@ -39,7 +39,7 @@
 	scm->creds.gid = current->gid;
 	scm->creds.pid = current->pid;
 	scm->sock      = sock;
-	if (!msg->msg_control)
+	if (msg->msg_controllen <= 0)
 		return 0;
 	return __scm_send(sock, msg, scm);
 }

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov