summaryrefslogtreecommitdiff
path: root/source3/smbd/process.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-08-05 16:49:20 +0200
committerVolker Lendecke <vl@samba.org>2011-08-25 21:36:19 +0200
commitf9ef138ec7a7a6507e0bd9d7d8753027c002b562 (patch)
treef4782ae2759070471d7439421e890990fe1e6154 /source3/smbd/process.c
parentb4b9918cc80ffae55c0c75a93c229c7a29bbb230 (diff)
downloadsamba-f9ef138ec7a7a6507e0bd9d7d8753027c002b562.tar.gz
samba-f9ef138ec7a7a6507e0bd9d7d8753027c002b562.tar.bz2
samba-f9ef138ec7a7a6507e0bd9d7d8753027c002b562.zip
s3: Pass smbd_server_connection to is_encrypted_packet
Diffstat (limited to 'source3/smbd/process.c')
-rw-r--r--source3/smbd/process.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/smbd/process.c b/source3/smbd/process.c
index 2d2c56112c..7e3c5f6734 100644
--- a/source3/smbd/process.c
+++ b/source3/smbd/process.c
@@ -202,7 +202,7 @@ int srv_set_message(char *buf,
static bool valid_smb_header(struct smbd_server_connection *sconn,
const uint8_t *inbuf)
{
- if (is_encrypted_packet(inbuf)) {
+ if (is_encrypted_packet(sconn, inbuf)) {
return true;
}
/*
@@ -464,7 +464,7 @@ static NTSTATUS receive_smb_talloc(TALLOC_CTX *mem_ctx,
return status;
}
- if (is_encrypted_packet((uint8_t *)*buffer)) {
+ if (is_encrypted_packet(sconn, (uint8_t *)*buffer)) {
status = srv_decrypt_buffer(*buffer);
if (!NT_STATUS_IS_OK(status)) {
DEBUG(0, ("receive_smb_talloc: SMB decryption failed on "