The pathref fsp link destructor will set smb_dname->fsp to NULL. Turning this
into an assert to give a hint at readers of the code trying to understand the
mechanics.
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
* correct path.
*/
if (smb_dname->fsp != NULL) {
+ /*
+ * The pathref fsp link destructor will set smb_dname->fsp to
+ * NULL. Turning this into an assert to give a hint at readers
+ * of the code trying to understand the mechanics.
+ */
file_free(req, smb_dname->fsp);
- smb_dname->fsp = NULL;
+ SMB_ASSERT(smb_dname->fsp == NULL);
}
mask = get_original_lcomp(talloc_tos(),