]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
(clntraw_create): Properly set xdrs and client.
authorUlrich Drepper <drepper@redhat.com>
Sat, 20 Apr 2002 17:20:14 +0000 (17:20 +0000)
committerUlrich Drepper <drepper@redhat.com>
Sat, 20 Apr 2002 17:20:14 +0000 (17:20 +0000)
sunrpc/clnt_raw.c

index ee70e9568b3fd40302b3a39b07987fef3b25699b..288b4eb4b45b23199379319c3da1a8dc40f65c5b 100644 (file)
@@ -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
    */