smbd: Rework create_conn_struct to use conn_new()
commit97eb0493fc263fabe63b6846b6f6add7068098e6
authorAndrew Bartlett <abartlet@samba.org>
Tue, 8 Jan 2013 21:02:23 +0000 (9 08:02 +1100)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 9 Jan 2013 03:54:22 +0000 (9 14:54 +1100)
tree66d6c12ab8087ab407940671ca466e38c91d45d1
parent3d5c534f0cc7c6e3eead7462eef4a178c7035857
smbd: Rework create_conn_struct to use conn_new()

This avoids issues with required structure elements not being initialised.

In particular, once conn->vuid_cache becomes a pointer, this ensures
that it is initalised in all cases.

Andrew Bartlett

Reviewed by: Jeremy Allison <jra@samba.org>
source3/smbd/msdfs.c