summaryrefslogtreecommitdiffstats
path: root/libcli
diff options
context:
space:
mode:
authorIra Cooper <ira@samba.org>2014-02-24 14:16:00 +0530
committerIra Cooper <ira@samba.org>2014-02-24 14:16:00 +0530
commit14063719e0b21da438179f0bb02b8c9d948d2dbb (patch)
tree4d6b58a85eb583a9dde7c89e51e40e5021c46ec4 /libcli
parent538cbfe0e90b7c7ed0f8421b323cac4dacd83f04 (diff)
downloadsamba-14063719e0b21da438179f0bb02b8c9d948d2dbb.tar.gz
samba-14063719e0b21da438179f0bb02b8c9d948d2dbb.tar.xz
samba-14063719e0b21da438179f0bb02b8c9d948d2dbb.zip
Revert "libcli: Overflow array index read possible, in auth code."
This reverts commit 538cbfe0e90b7c7ed0f8421b323cac4dacd83f04. Signed-off-by: Ira Cooper <ira@samba.org>
Diffstat (limited to 'libcli')
-rw-r--r--libcli/auth/netlogon_creds_cli.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libcli/auth/netlogon_creds_cli.c b/libcli/auth/netlogon_creds_cli.c
index 7e882552c94..d73335da1d6 100644
--- a/libcli/auth/netlogon_creds_cli.c
+++ b/libcli/auth/netlogon_creds_cli.c
@@ -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) {