diff options
author | pfg <pfg@FreeBSD.org> | 2015-02-02 16:07:07 +0000 |
---|---|---|
committer | pfg <pfg@FreeBSD.org> | 2015-02-02 16:07:07 +0000 |
commit | a9fa41d6481fc92824ad8214f937837a8a862861 (patch) | |
tree | f8e60fa4814aff4bf73e687d6384237f9de1714c /sys/rpc | |
parent | 5431db70861da3e32938611b0006f8a7940cdf85 (diff) | |
download | FreeBSD-src-a9fa41d6481fc92824ad8214f937837a8a862861.zip FreeBSD-src-a9fa41d6481fc92824ad8214f937837a8a862861.tar.gz |
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
Diffstat (limited to 'sys/rpc')
-rw-r--r-- | sys/rpc/svc_vc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/rpc/svc_vc.c b/sys/rpc/svc_vc.c index 0190a0c..920c4b5 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; |