r21518: fix panic, sorry...
authorStefan Metzmacher <metze@samba.org>
Fri, 23 Feb 2007 12:29:21 +0000 (12:29 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:48:49 +0000 (14:48 -0500)
metze
(This used to be commit 3c786eb6bdb3289a237d231e75092a8b3ca56197)

source4/rpc_server/lsa/dcesrv_lsa.c

index 98200457dda5dc6b5c34eebdfa0ec2b33fd5485e..7e457cff7d82683d6167d52f3576c6c0bf164b9a 100644 (file)
@@ -386,7 +386,7 @@ static NTSTATUS dcesrv_lsa_get_policy_state(struct dcesrv_call_state *dce_call,
                talloc_free(forest_ref_res);
                return NT_STATUS_INVALID_SYSTEM_SERVICE;
        }
                talloc_free(forest_ref_res);
                return NT_STATUS_INVALID_SYSTEM_SERVICE;
        }
-       if (ref_res->count != 1) {
+       if (forest_ref_res->count != 1) {
                talloc_free(forest_ref_res);
                return NT_STATUS_NO_SUCH_DOMAIN;                
        }
                talloc_free(forest_ref_res);
                return NT_STATUS_NO_SUCH_DOMAIN;                
        }