Ensure all callers to the rpc_client/cli_pipe functions correctly
[amitay/samba.git] / source3 / utils / net_util.c
index d0d1fc042144bf3c1a5e497aeb156b456fcc4788..eaa2125e34f7a58242828d9861d1b9d6dfa70936 100644 (file)
@@ -28,7 +28,7 @@ NTSTATUS net_rpc_lookup_name(struct net_context *c,
                             const char **ret_name, DOM_SID *ret_sid,
                             enum lsa_SidType *ret_type)
 {
-       struct rpc_pipe_client *lsa_pipe;
+       struct rpc_pipe_client *lsa_pipe = NULL;
        struct policy_handle pol;
        NTSTATUS result = NT_STATUS_OK;
        const char **dom_names;