From: Ulrich Drepper Date: Sat, 20 Apr 2002 17:20:14 +0000 (+0000) Subject: (clntraw_create): Properly set xdrs and client. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d1e467ab58801ee8c46ea3a6d504117ddb4c9c3d;p=thirdparty%2Fglibc.git (clntraw_create): Properly set xdrs and client. --- diff --git a/sunrpc/clnt_raw.c b/sunrpc/clnt_raw.c index ee70e9568b3..288b4eb4b45 100644 --- a/sunrpc/clnt_raw.c +++ b/sunrpc/clnt_raw.c @@ -92,8 +92,8 @@ clntraw_create (u_long prog, u_long vers) { struct clntraw_private_s *clp = clntraw_private; struct rpc_msg call_msg; - XDR *xdrs = &clp->xdr_stream; - CLIENT *client = &clp->client_object; + XDR *xdrs; + CLIENT *client; if (clp == 0) { @@ -102,6 +102,8 @@ clntraw_create (u_long prog, u_long vers) return (0); clntraw_private = clp; } + xdrs = &clp->xdr_stream; + client = &clp->client_object; /* * pre-serialize the static part of the call msg and stash it away */