summaryrefslogtreecommitdiff
path: root/source4/smb_server/handle.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/smb_server/handle.c')
-rw-r--r--source4/smb_server/handle.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source4/smb_server/handle.c b/source4/smb_server/handle.c
index 07b49bf79d..ebeecac603 100644
--- a/source4/smb_server/handle.c
+++ b/source4/smb_server/handle.c
@@ -85,9 +85,8 @@ struct smbsrv_handle *smbsrv_smb2_handle_find(struct smbsrv_tcon *smb_tcon,
/*
destroy a connection structure
*/
-static int smbsrv_handle_destructor(void *ptr)
+static int smbsrv_handle_destructor(struct smbsrv_handle *handle)
{
- struct smbsrv_handle *handle = talloc_get_type(ptr, struct smbsrv_handle);
struct smbsrv_handles_context *handles_ctx;
handles_ctx = &handle->tcon->handles;