Date: Mon, 2 Feb 2015 16:07:08 +0000 (UTC) From: "Pedro F. Giffuni" <pfg@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r278100 - head/sys/rpc Message-ID: <201502021607.t12G78Iv045857@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201502021607.t12G78Iv045857>