summaryrefslogtreecommitdiff
path: root/source/lib/tls
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2006-05-24 07:34:11 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:08:32 -0500
commit61c6100617589ac6df4f527877241464cacbf8b3 (patch)
treea10151c2e1e1879ad03bfbf79aaad8d9ac1193f9 /source/lib/tls
parent6b4c085b862c0932b80b93e316396a53b993544c (diff)
downloadsamba-61c6100617589ac6df4f527877241464cacbf8b3.tar.gz
r15854: more talloc_set_destructor() typesafe fixes
Diffstat (limited to 'source/lib/tls')
-rw-r--r--source/lib/tls/tls.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source/lib/tls/tls.c b/source/lib/tls/tls.c
index 2872669948e..936c18c0c6c 100644
--- a/source/lib/tls/tls.c
+++ b/source/lib/tls/tls.c
@@ -175,9 +175,8 @@ static ssize_t tls_push(gnutls_transport_ptr ptr, const void *buf, size_t size)
/*
destroy a tls session
*/
-static int tls_destructor(void *ptr)
+static int tls_destructor(struct tls_context *tls)
{
- struct tls_context *tls = talloc_get_type(ptr, struct tls_context);
int ret;
ret = gnutls_bye(tls->session, GNUTLS_SHUT_WR);
if (ret < 0) {