svn commit: r309492 - stable/10/lib/libc/rpc
Ngie Cooper
ngie at FreeBSD.org
Sat Dec 3 18:08:51 UTC 2016
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;
More information about the svn-src-stable
mailing list