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;
_______________________________________________
svn-src-stable-10@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-stable-10
To unsubscribe, send any mail to "svn-src-stable-10-unsubscr...@freebsd.org"

Reply via email to