libnetapi: Fix CID 1272947 Fix logically dead code
authorAnoop C S <achiraya@redhat.com>
Mon, 23 Mar 2015 11:41:31 +0000 (17:11 +0530)
committerMichael Adam <obnox@samba.org>
Mon, 23 Mar 2015 15:04:19 +0000 (16:04 +0100)
Signed-off-by: Anoop C S <achiraya@redhat.com>
Reviewed-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
source3/lib/netapi/samr.c

index 7b3d3c58e76f988006e5720eb20e4119f234f850..97c61d18099c181ff393c49579e79cfcee9a1763 100644 (file)
@@ -45,7 +45,7 @@ WERROR libnetapi_samr_open_domain(struct libnetapi_ctx *mem_ctx,
        struct samr_SamArray *sam = NULL;
        const char *domain_name = NULL;
        struct lsa_String lsa_domain_name;
-       bool domain_found = true;
+       bool domain_found = false;
        int i;
        struct dcerpc_binding_handle *b = pipe_cli->binding_handle;