Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 3 Dec 2016 18:08:50 +0000 (UTC)
From:      Ngie Cooper <ngie@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r309492 - stable/10/lib/libc/rpc
Message-ID:  <201612031808.uB3I8osQ032640@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ngie
Date: Sat Dec  3 18:08:49 2016
New Revision: 309492
URL: https://svnweb.freebsd.org/changeset/base/309492

Log:
  MFC r278041:
  r278041 (by pfg):
  
  rpc: Uninitialized pointer read
  
  Initialize *xprt to avoid exposing a random value
  in cleanup_svc_vc_create.
  
  CID:		1018723
  Phabric:	D1749

Modified:
  stable/10/lib/libc/rpc/svc_vc.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/lib/libc/rpc/svc_vc.c
==============================================================================
--- stable/10/lib/libc/rpc/svc_vc.c	Sat Dec  3 17:54:08 2016	(r309491)
+++ stable/10/lib/libc/rpc/svc_vc.c	Sat Dec  3 18:08:49 2016	(r309492)
@@ -125,7 +125,7 @@ struct cf_conn {  /* kept in xprt->xp_p1
 SVCXPRT *
 svc_vc_create(int fd, u_int sendsize, u_int recvsize)
 {
-	SVCXPRT *xprt;
+	SVCXPRT *xprt = NULL;
 	struct cf_rendezvous *r = NULL;
 	struct __rpc_sockinfo si;
 	struct sockaddr_storage sslocal;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201612031808.uB3I8osQ032640>