s3-net: Do not use uninitialized value
authorSumit Bose <sbose@redhat.com>
Thu, 31 Mar 2011 12:09:45 +0000 (14:09 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Thu, 31 Mar 2011 16:09:57 +0000 (18:09 +0200)
s3-net: Do not use uninitialized value

Signed-off-by: Andreas Schneider <asn@samba.org>
Autobuild-User: Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date: Thu Mar 31 18:09:57 CEST 2011 on sn-devel-104

source3/utils/net_rpc.c

index 4c523455b65fa856e439a1bfad32eebd4d2d4652..2df33c618a1b358d393cc6371d02fb097112750b 100644 (file)
@@ -6739,6 +6739,8 @@ static int rpc_trustdom_list(struct net_context *c, int argc, const char **argv)
                return -1;
        };
 
+       b = pipe_hnd->binding_handle;
+
        nt_status = rpccli_lsa_open_policy2(pipe_hnd, mem_ctx, false, KEY_QUERY_VALUE,
                                        &connect_hnd);
        if (NT_STATUS_IS_ERR(nt_status)) {