diff options
Diffstat (limited to 'source3/libsmb/clioplock.c')
-rw-r--r-- | source3/libsmb/clioplock.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/libsmb/clioplock.c b/source3/libsmb/clioplock.c index effd4a5565..2e54f5a781 100644 --- a/source3/libsmb/clioplock.c +++ b/source3/libsmb/clioplock.c @@ -22,10 +22,11 @@ /**************************************************************************** send an ack for an oplock break request ****************************************************************************/ + bool cli_oplock_ack(struct cli_state *cli, int fnum, unsigned char level) { char *oldbuf = cli->outbuf; - pstring buf; + char buf[smb_size+16]; bool ret; cli->outbuf = buf; @@ -47,7 +48,7 @@ bool cli_oplock_ack(struct cli_state *cli, int fnum, unsigned char level) SSVAL(buf,smb_vwv6,0); /* unlockcount */ SSVAL(buf,smb_vwv7,0); /* lockcount */ - ret = cli_send_smb(cli); + ret = cli_send_smb(cli); cli->outbuf = oldbuf; |