Fix cfg gate on fmt_lm_pwdump: sam feature, not ntds.dit

The function is used by both SAM and NTDS output paths. Gating it on
ntds.dit broke compilation when sam was enabled without ntds.dit
(e.g. --features sam or --features vmfs).
This commit is contained in:
NK
2026-03-17 01:48:26 +01:00
parent 09dae5b16c
commit 75b2351363
+1 -1
View File
@@ -299,7 +299,7 @@ fn fmt_hash(hash: &[u8], c: &Colors) -> String {
}
/// Format LM hash for pwdump output: zero → standard empty LM placeholder.
#[cfg(feature = "ntds.dit")]
#[cfg(feature = "sam")]
fn fmt_lm_pwdump(hash: &[u8; 16]) -> String {
if *hash == ZERO_HASH_16 {
BLANK_LM_HEX.to_string()