s3-loadparm: mark a few parameters as having P_BYTES type
authorAndrew Tridgell <tridge@samba.org>
Wed, 30 Nov 2011 06:29:10 +0000 (17:29 +1100)
committerAndrew Tridgell <tridge@samba.org>
Thu, 9 Feb 2012 04:41:49 +0000 (15:41 +1100)
this fixes a problem with "max xmit = 32K" resulting in a maximum SMB
transmit size of 32 bytes, which makes for some very interesting
network traces!

This is what was causing smbtorture to consume gigabytes of memory in
the rpc.schannel test

source3/param/loadparm.c

index 0c769e61d222ccffcf93754eeae861f66245a686..22b07b2865928a6ea1cba73e57935a1c00e70dfd 100644 (file)
@@ -1529,7 +1529,7 @@ static struct parm_struct parm_table[] = {
        },
        {
                .label          = "aio write behind",
-               .type           = P_STRING,
+               .type           = P_BYTES,
                .p_class        = P_LOCAL,
                .offset         = LOCAL_VAR(szAioWriteBehind),
                .special        = NULL,