diff options
author | Andreas Schneider <asn@samba.org> | 2018-02-13 12:12:06 +0100 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2018-02-21 02:46:40 +0100 |
commit | 6f9c6d369f4aa4a5c861f51041dd663e81e2ec4e (patch) | |
tree | 103db2c6f9c8f70d81eaf496a0805a78978f4bfb /source3/auth | |
parent | 7f47cec2343ca7658460cc14fa613fdd2611677a (diff) | |
download | samba-6f9c6d369f4aa4a5c861f51041dd663e81e2ec4e.tar.gz |
s3:auth: Pass mem_ctx to init_system_session_info()
We have a stackframe we can use for the lifetime of the session.
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Wed Feb 21 02:46:40 CET 2018 on sn-devel-144
Diffstat (limited to 'source3/auth')
-rw-r--r-- | source3/auth/auth_util.c | 4 | ||||
-rw-r--r-- | source3/auth/proto.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/source3/auth/auth_util.c b/source3/auth/auth_util.c index c81432d277d..4b2026127ed 100644 --- a/source3/auth/auth_util.c +++ b/source3/auth/auth_util.c @@ -1169,12 +1169,12 @@ NTSTATUS make_session_info_guest(TALLOC_CTX *mem_ctx, static struct auth_session_info *system_info = NULL; -NTSTATUS init_system_session_info(void) +NTSTATUS init_system_session_info(TALLOC_CTX *mem_ctx) { if (system_info != NULL) return NT_STATUS_OK; - return make_new_session_info_system(NULL, &system_info); + return make_new_session_info_system(mem_ctx, &system_info); } NTSTATUS make_session_info_system(TALLOC_CTX *mem_ctx, diff --git a/source3/auth/proto.h b/source3/auth/proto.h index 6d6f789d8b6..bdefeaf8ec5 100644 --- a/source3/auth/proto.h +++ b/source3/auth/proto.h @@ -241,7 +241,7 @@ NTSTATUS make_session_info_from_username(TALLOC_CTX *mem_ctx, struct auth_session_info *copy_session_info(TALLOC_CTX *mem_ctx, const struct auth_session_info *src); bool init_guest_session_info(TALLOC_CTX *mem_ctx); -NTSTATUS init_system_session_info(void); +NTSTATUS init_system_session_info(TALLOC_CTX *mem_ctx); bool session_info_set_session_key(struct auth_session_info *info, DATA_BLOB session_key); NTSTATUS make_server_info_guest(TALLOC_CTX *mem_ctx, |