autorid: Correctly init range_index for "delete range"
authorVolker Lendecke <vl@samba.org>
Thu, 14 Nov 2013 11:49:38 +0000 (11:49 +0000)
committerMichael Adam <obnox@samba.org>
Thu, 14 Nov 2013 14:55:54 +0000 (15:55 +0100)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
Autobuild-User(master): Michael Adam <obnox@samba.org>
Autobuild-Date(master): Thu Nov 14 15:55:54 CET 2013 on sn-devel-104

source3/utils/net_idmap.c

index a26f2b95e628a70b7c21a8dd8679866f964ba428..1095f143d5674c8d27a1810f05c457d80b9d9806 100644 (file)
@@ -706,6 +706,7 @@ static int net_idmap_autorid_delete_range(struct net_context *c, int argc,
        }
 
        domsid = argv[0];
+       range_index = 0;
 
        if (argc == 2) {
                ok = parse_uint32(argv[1], &range_index);