Ignore:
Timestamp:
Jul 2, 2011, 4:01:14 PM (14 years ago)
Author:
Herwig Bauernfeind
Message:

Samba 3.5: Update vendor to version 3.5.9

Location:
vendor/current/source3/rpc_client
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • vendor/current/source3/rpc_client/cli_pipe.c

    r587 r597  
    33313331        }
    33323332
    3333         status = open_socket_out(&addr, port, 60, &fd);
     3333        status = open_socket_out(&addr, port, 60*1000, &fd);
    33343334        if (!NT_STATUS_IS_OK(status)) {
    33353335                goto fail;
  • vendor/current/source3/rpc_client/cli_samr.c

    r414 r597  
    159159        struct lsa_String server, account;
    160160
     161        ZERO_STRUCT(new_nt_password);
     162        ZERO_STRUCT(new_lm_password);
     163        ZERO_STRUCT(old_nt_hash_enc);
     164        ZERO_STRUCT(old_lm_hash_enc);
     165
    161166        DEBUG(10,("rpccli_samr_chng_pswd_auth_crap\n"));
    162167
     
    164169        init_lsa_String(&account, username);
    165170
    166         memcpy(&new_nt_password.data, new_nt_password_blob.data, 516);
    167         memcpy(&new_lm_password.data, new_lm_password_blob.data, 516);
    168         memcpy(&old_nt_hash_enc.hash, old_nt_hash_enc_blob.data, 16);
    169         memcpy(&old_lm_hash_enc.hash, old_lm_hash_enc_blob.data, 16);
     171        if (new_nt_password_blob.data && new_nt_password_blob.length >= 516) {
     172                memcpy(&new_nt_password.data, new_nt_password_blob.data, 516);
     173        }
     174        if (new_lm_password_blob.data && new_lm_password_blob.length >= 516) {
     175                memcpy(&new_lm_password.data, new_lm_password_blob.data, 516);
     176        }
     177        if (old_nt_hash_enc_blob.data && old_nt_hash_enc_blob.length >= 16) {
     178                memcpy(&old_nt_hash_enc.hash, old_nt_hash_enc_blob.data, 16);
     179        }
     180        if (old_lm_hash_enc_blob.data && old_lm_hash_enc_blob.length >= 16) {
     181                memcpy(&old_lm_hash_enc.hash, old_lm_hash_enc_blob.data, 16);
     182        }
    170183
    171184        result = rpccli_samr_ChangePasswordUser2(cli, mem_ctx,
Note: See TracChangeset for help on using the changeset viewer.