svn commit: r278100 - head/sys/rpc

Pedro F. Giffuni pfg at FreeBSD.org
Mon Feb 2 16:07:08 UTC 2015


Author: pfg
Date: Mon Feb  2 16:07:07 2015
New Revision: 278100
URL: https://svnweb.freebsd.org/changeset/base/278100

Log:
  rpc: Uninitialized pointer read
  
  Initialize *xprt to avoid exposing a random value
  in cleanup_svc_vc_create.
  This is the kernel counterpart of r278041.
  
  CID:		1007340

Modified:
  head/sys/rpc/svc_vc.c

Modified: head/sys/rpc/svc_vc.c
==============================================================================
--- head/sys/rpc/svc_vc.c	Mon Feb  2 16:06:23 2015	(r278099)
+++ head/sys/rpc/svc_vc.c	Mon Feb  2 16:07:07 2015	(r278100)
@@ -143,7 +143,7 @@ SVCXPRT *
 svc_vc_create(SVCPOOL *pool, struct socket *so, size_t sendsize,
     size_t recvsize)
 {
-	SVCXPRT *xprt;
+	SVCXPRT *xprt = NULL;
 	struct sockaddr* sa;
 	int error;
 


More information about the svn-src-head mailing list