net: Add some {}
authorVolker Lendecke <vl@samba.org>
Sun, 4 Feb 2018 15:45:57 +0000 (15:45 +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 0c019e6e4d40f3e25eac69d917348bd44baece90..5ac1ddaaef073b5feff014b185fdb8ea3c2716b0 100644 (file)
@@ -405,8 +405,9 @@ static int net_lookup_dsgetdcname(struct net_context *c, int argc, const char **
 
        domain_name = argv[0];
 
-       if (argc >= 2)
+       if (argc >= 2) {
                sscanf(argv[1], "%x", &flags);
+       }
 
        if (!flags) {
                flags |= DS_DIRECTORY_SERVICE_REQUIRED;