From dd192bb649341d0f2bd91350c7efe98dbdb47172 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sat, 12 Jun 2010 11:55:42 +0200 Subject: s3: Explicitly pass sconn to is_valid_writeX_buffer --- source3/smbd/reply.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source3/smbd/reply.c') diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c index 1c7d0d2bcd..cf4efde013 100644 --- a/source3/smbd/reply.c +++ b/source3/smbd/reply.c @@ -4239,13 +4239,13 @@ strict_unlock: (2*14) + /* word count (including bcc) */ \ 1 /* pad byte */) -bool is_valid_writeX_buffer(const uint8_t *inbuf) +bool is_valid_writeX_buffer(struct smbd_server_connection *sconn, + const uint8_t *inbuf) { size_t numtowrite; connection_struct *conn = NULL; unsigned int doff = 0; size_t len = smb_len_large(inbuf); - struct smbd_server_connection *sconn = smbd_server_conn; if (is_encrypted_packet(inbuf)) { /* Can't do this on encrypted -- cgit