1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

Revert "libcli: Overflow array index read possible, in auth code."

This reverts commit 538cbfe0e9.

Signed-off-by: Ira Cooper <ira@samba.org>
This commit is contained in:
Ira Cooper 2014-02-24 14:16:00 +05:30
parent 538cbfe0e9
commit 14063719e0

View File

@ -1766,8 +1766,8 @@ struct tevent_req *netlogon_creds_cli_ServerPasswordSet_send(TALLOC_CTX *mem_ctx
if (new_version != NULL) {
struct NL_PASSWORD_VERSION version;
int32_t len = IVAL(state->samr_crypt_password.data, 512);
int32_t ofs = 512 - len;
uint32_t len = IVAL(state->samr_crypt_password.data, 512);
uint32_t ofs = 512 - len;
uint8_t *p;
if (ofs < 12) {