diff options
author | Andrew Tridgell <tridge@samba.org> | 2006-05-24 07:34:11 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:08:32 -0500 |
commit | 61c6100617589ac6df4f527877241464cacbf8b3 (patch) | |
tree | a10151c2e1e1879ad03bfbf79aaad8d9ac1193f9 /source/lib/tls | |
parent | 6b4c085b862c0932b80b93e316396a53b993544c (diff) | |
download | samba-61c6100617589ac6df4f527877241464cacbf8b3.tar.gz |
r15854: more talloc_set_destructor() typesafe fixes
Diffstat (limited to 'source/lib/tls')
-rw-r--r-- | source/lib/tls/tls.c | 3 |
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) { |