r14974: work around an ibm checker bug
authorAndrew Tridgell <tridge@samba.org>
Sat, 8 Apr 2006 02:35:00 +0000 (02:35 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:00:49 +0000 (14:00 -0500)
(This used to be commit 2031e07a8a14d83ab621f8baaae6b4e1425667d7)

source4/libcli/raw/rawioctl.c

index db980a55d6673967102d43f3d0935f1e7d1d438a..d4a299fe02bbc971af998ec961d73057995764a2 100644 (file)
@@ -73,13 +73,13 @@ static struct smbcli_request *smb_raw_ntioctl_send(struct smbcli_tree *tree,
                                                union smb_ioctl *parms)
 {
        struct smb_nttrans nt;
-       uint16_t setup[4];
+       uint8_t setup[8];
 
        nt.in.max_setup = 0;
        nt.in.max_param = 0;
        nt.in.max_data = 0;
        nt.in.setup_count = 4;
-       nt.in.setup = setup;
+       nt.in.setup = (uint16_t *)setup;
        SIVAL(setup, 0, parms->ntioctl.in.function);
        SSVAL(setup, 4, parms->ntioctl.in.file.fnum);
        SCVAL(setup, 6, parms->ntioctl.in.fsctl);