mirror of
https://github.com/samba-team/samba.git
synced 2025-08-30 17:49:30 +03:00
r20985: leave room for terminating NULL when printing password hashes via 'pdbedit -L -w'
(This used to be commit 2a7311db27
)
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
db8ee51cf2
commit
78f5f4b260
@ -346,9 +346,9 @@ void pdb_sethexpwd(char *p, const unsigned char *pwd, uint32 acct_ctrl)
|
|||||||
slprintf(&p[i*2], 3, "%02X", pwd[i]);
|
slprintf(&p[i*2], 3, "%02X", pwd[i]);
|
||||||
} else {
|
} else {
|
||||||
if (acct_ctrl & ACB_PWNOTREQ)
|
if (acct_ctrl & ACB_PWNOTREQ)
|
||||||
safe_strcpy(p, "NO PASSWORDXXXXXXXXXXXXXXXXXXXXX", 33);
|
safe_strcpy(p, "NO PASSWORDXXXXXXXXXXXXXXXXXXXXX", 32);
|
||||||
else
|
else
|
||||||
safe_strcpy(p, "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", 33);
|
safe_strcpy(p, "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", 32);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user