1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00

Parinoia fixes from HEAD - malloc() some extra room after the allocated

buffer size.
(This used to be commit 27ec538eca)
This commit is contained in:
Andrew Bartlett 2003-03-18 12:02:51 +00:00
parent 892599fb92
commit ec2b31b7e3

View File

@ -245,8 +245,8 @@ struct cli_state *cli_initialise(struct cli_state *cli)
cli->timeout = 20000; /* Timeout is in milliseconds. */
cli->bufsize = CLI_BUFFER_SIZE+4;
cli->max_xmit = cli->bufsize;
cli->outbuf = (char *)malloc(cli->bufsize);
cli->inbuf = (char *)malloc(cli->bufsize);
cli->outbuf = (char *)malloc(cli->bufsize+SAFETY_MARGIN);
cli->inbuf = (char *)malloc(cli->bufsize+SAFETY_MARGIN);
cli->oplock_handler = cli_oplock_ack;
cli->use_spnego = lp_client_use_spnego();