summaryrefslogtreecommitdiffstats
path: root/source/rpc_client/cli_netlogon.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1998-08-31 03:11:42 +0000
committerAndrew Tridgell <tridge@samba.org>1998-08-31 03:11:42 +0000
commit3eade55dc7c842bdc50205c330802d211fae54d3 (patch)
tree09bca34d4463927d2930e9e926165d378ecb870f /source/rpc_client/cli_netlogon.c
parent7d455ee637b6ff70c95845f89d71573ca07b83f3 (diff)
downloadsamba-3eade55dc7c842bdc50205c330802d211fae54d3.tar.gz
samba-3eade55dc7c842bdc50205c330802d211fae54d3.tar.xz
samba-3eade55dc7c842bdc50205c330802d211fae54d3.zip
bounds check next_token() to prevent possible buffer overflows
Diffstat (limited to 'source/rpc_client/cli_netlogon.c')
-rw-r--r--source/rpc_client/cli_netlogon.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/rpc_client/cli_netlogon.c b/source/rpc_client/cli_netlogon.c
index ebe35abbcb9..59d85db6751 100644
--- a/source/rpc_client/cli_netlogon.c
+++ b/source/rpc_client/cli_netlogon.c
@@ -609,8 +609,9 @@ account password for domain %s.\n", domain));
*/
generate_random_buffer( new_trust_passwd_hash, 16, True);
- while(remote_machine_list && next_token( &remote_machine_list,
- remote_machine, LIST_SEP)) {
+ while(remote_machine_list &&
+ next_token(&remote_machine_list, remote_machine,
+ LIST_SEP, sizeof(remote_machine))) {
strupper(remote_machine);
if(modify_trust_password( domain, remote_machine,
old_trust_passwd_hash, new_trust_passwd_hash)) {