source/libsmb: Fix CID 1272955 Logically dead code
authorAnoop C S <achiraya@redhat.com>
Mon, 15 Jun 2015 09:33:19 +0000 (15:03 +0530)
committerMichael Adam <obnox@samba.org>
Mon, 15 Jun 2015 17:56:45 +0000 (19:56 +0200)
Signed-off-by: Anoop C S <achiraya@redhat.com>
Reviewed-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
source3/libsmb/namequery.c

index e900934cee7c8a13240a51d7caf1fcd0c329710d..07c58fc68c1185805f4c2ee94c1c67f6e4e60c14 100644 (file)
@@ -3117,10 +3117,6 @@ static NTSTATUS get_dc_list(const char *domain,
                *ordered = true;
                resolve_order = kdc_order;
        }
-       if (!resolve_order) {
-               status = NT_STATUS_NO_MEMORY;
-               goto out;
-       }
 
        /* fetch the server we have affinity for.  Add the
           'password server' list to a search for our domain controllers */