aboutsummaryrefslogtreecommitdiff
path: root/sys/rpc
diff options
context:
space:
mode:
authorPedro F. Giffuni <pfg@FreeBSD.org>2015-02-02 16:07:07 +0000
committerPedro F. Giffuni <pfg@FreeBSD.org>2015-02-02 16:07:07 +0000
commit84a9ba84bbc39d45239370630fa524e88cc19ebe (patch)
treef8e60fa4814aff4bf73e687d6384237f9de1714c /sys/rpc
parent4b0e5c9ef420d810d0c98f06d5a2df54df71dfcb (diff)
downloadsrc-84a9ba84bbc39d45239370630fa524e88cc19ebe.tar.gz
src-84a9ba84bbc39d45239370630fa524e88cc19ebe.zip
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
Notes
Notes: svn path=/head/; revision=278100
Diffstat (limited to 'sys/rpc')
-rw-r--r--sys/rpc/svc_vc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/rpc/svc_vc.c b/sys/rpc/svc_vc.c
index 0190a0ce3834..920c4b5efef7 100644
--- a/sys/rpc/svc_vc.c
+++ b/sys/rpc/svc_vc.c
@@ -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;