idmap_autorid: Add a {} pair in an if-statement
authorVolker Lendecke <vl@samba.org>
Thu, 1 Dec 2016 16:11:38 +0000 (16:11 +0000)
committerJeremy Allison <jra@samba.org>
Tue, 6 Dec 2016 19:24:22 +0000 (20:24 +0100)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/winbindd/idmap_autorid.c

index 20cd5b72a98a28ae6292dee4c437572edd8c6c70..aa3095babb437b22de3d0e65950976c780924d76 100644 (file)
@@ -243,7 +243,7 @@ static NTSTATUS idmap_autorid_id_to_sid(struct autorid_global_config *cfg,
                map->status = ID_UNKNOWN;
                return NT_STATUS_OK;
        }
-       if ((q != NULL) && (*q != '\0'))
+       if ((q != NULL) && (*q != '\0')) {
                if (sscanf(q+1, "%"SCNu32, &domain_range_index) != 1) {
                        DEBUG(10, ("Domain range index not found, "
                                   "ignoring mapping request\n"));
@@ -251,6 +251,7 @@ static NTSTATUS idmap_autorid_id_to_sid(struct autorid_global_config *cfg,
                        map->status = ID_UNKNOWN;
                        return NT_STATUS_OK;
                }
+       }
 
        TALLOC_FREE(data.dptr);