1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-04 17:47:26 +03:00

s3-auth Remove pointless destructor

All the users of this structure allocate info3 on the session_info

Andrew Bartlett

Signed-off-by: Andrew Tridgell <tridge@samba.org>
This commit is contained in:
Andrew Bartlett 2011-07-18 12:29:50 +10:00
parent 7b273df175
commit 9d96b78f31

View File

@ -63,14 +63,6 @@ struct auth_serversupplied_info *make_server_info(TALLOC_CTX *mem_ctx)
return result;
}
/* FIXME: do we really still need this ? */
static int auth3_session_info_dtor(struct auth3_session_info *session_info)
{
TALLOC_FREE(session_info->info3);
ZERO_STRUCTP(session_info);
return 0;
}
/***************************************************************************
Make a server_info struct. Free with TALLOC_FREE().
***************************************************************************/
@ -85,8 +77,6 @@ struct auth3_session_info *make_auth3_session_info(TALLOC_CTX *mem_ctx)
return NULL;
}
talloc_set_destructor(result, auth3_session_info_dtor);
/* Initialise the unix_token to NULL which may save us from
giving away root access if there is a bug in allocating
these fields. */