fixed the data in SAVEFILE op in RAW-OFFLINE
authorAndrew Tridgell <tridge@samba.org>
Sun, 24 Aug 2008 07:42:29 +0000 (17:42 +1000)
committerAndrew Tridgell <tridge@samba.org>
Sun, 24 Aug 2008 07:42:29 +0000 (17:42 +1000)
(This used to be commit 3441ea5df5b750442d17b90de73d392d2d802ab1)

source4/torture/raw/offline.c

index 0f7787a92faf65de54360476aeaa8d716cde7168..f2f0bf5d27427b13d1d5f1313a46a49694778e08 100644 (file)
@@ -256,7 +256,7 @@ static void test_offline(struct offline_state *state)
                state->savefile->in.fname = state->fname;
                state->savefile->in.data  = talloc_size(state->savefile, FILE_SIZE);
                state->savefile->in.size  = FILE_SIZE;
                state->savefile->in.fname = state->fname;
                state->savefile->in.data  = talloc_size(state->savefile, FILE_SIZE);
                state->savefile->in.size  = FILE_SIZE;
-               memset(state->savefile->in.data, state->fnumber, FILE_SIZE);
+               memset(state->savefile->in.data, 1+(state->fnumber%255), FILE_SIZE);
        
                ctx = smb_composite_savefile_send(state->tree, state->savefile);
                if (ctx == NULL) {
        
                ctx = smb_composite_savefile_send(state->tree, state->savefile);
                if (ctx == NULL) {