Removes the asserts which were only needed to prove patchset correctness.
If smb_fname->twrp is zero, the path won't contain an @GMT token, so we can skip
the stripping logic and directly goto out.
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
goto out;
}
+ if (smb_fname->twrp == 0) {
+ goto out;
+ }
+
+ if (ptimestamp != NULL) {
+ *ptimestamp = nt_time_to_unix(smb_fname->twrp);
+ }
+
/*
* From here we're only looking to strip an
* SMB-layer @GMT- token.
}
*pstripped = stripped;
}
- if (timestamp != 0) {
- time_t smb_fname_timestamp;
- SMB_ASSERT(smb_fname->twrp != 0);
- smb_fname_timestamp = nt_time_to_unix(smb_fname->twrp);
- SMB_ASSERT(smb_fname_timestamp == timestamp);
- }
- *ptimestamp = timestamp;
ret = true;
out: