smbd: add create_conn_struct_tos[_cwd]() helper functions
authorStefan Metzmacher <metze@samba.org>
Thu, 24 May 2018 13:59:43 +0000 (15:59 +0200)
committerStefan Metzmacher <metze@samba.org>
Thu, 14 Jun 2018 18:52:20 +0000 (20:52 +0200)
commit66bc2c4332f475d9b614c442223749a499b39c60
treee888d3ff72ae7664ef172e8fa3af4a821a9fa3e1
parentebae5e055cfb5ad1286e1ad51732e93a7f3b0c78
smbd: add create_conn_struct_tos[_cwd]() helper functions

This makes it more obvious that the returned connection_struct
is only temporary (and allocated on talloc_tos()!)
It will never allow async requests on a long term
tevent context! So we create a short term event context.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/msdfs.c
source3/smbd/proto.h