From d1e467ab58801ee8c46ea3a6d504117ddb4c9c3d Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sat, 20 Apr 2002 17:20:14 +0000 Subject: [PATCH] (clntraw_create): Properly set xdrs and client. --- sunrpc/clnt_raw.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 */ -- 2.47.2