net: Slightly simplify net_lookup_dsgetdcname()
authorVolker Lendecke <vl@samba.org>
Sun, 4 Feb 2018 15:48:23 +0000 (15:48 +0000)
committerRalph Boehme <slow@samba.org>
Tue, 13 Feb 2018 15:42:22 +0000 (16:42 +0100)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/utils/net_lookup.c

index 5ac1ddaaef073b5feff014b185fdb8ea3c2716b0..597e098e2e1887b11d6a76ab2c32e5a97dc78b0b 100644 (file)
@@ -409,8 +409,8 @@ static int net_lookup_dsgetdcname(struct net_context *c, int argc, const char **
                sscanf(argv[1], "%x", &flags);
        }
 
-       if (!flags) {
-               flags |= DS_DIRECTORY_SERVICE_REQUIRED;
+       if (flags == 0) {
+               flags = DS_DIRECTORY_SERVICE_REQUIRED;
        }
 
        if (argc == 3) {