Ignore:
Timestamp:
Nov 27, 2012, 4:56:06 PM (12 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: updated vendor to 3.6.9

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified vendor/current/source3/rpc_server/netlogon/srv_netlog_nt.c

    r740 r746  
    11211121        }
    11221122
     1123        become_root();
    11231124        status = samr_find_machine_account(mem_ctx,
    11241125                                           h,
     
    11281129                                           NULL,
    11291130                                           &user_handle);
     1131        unbecome_root();
    11301132        if (!NT_STATUS_IS_OK(status)) {
    11311133                goto out;
     
    11711173        info->info18 = info18;
    11721174
     1175        become_root();
    11731176        status = dcerpc_samr_SetUserInfo2(h,
    11741177                                          mem_ctx,
     
    11771180                                          info,
    11781181                                          &result);
     1182        unbecome_root();
    11791183        if (!NT_STATUS_IS_OK(status)) {
    11801184                goto out;
     
    12481252{
    12491253        NTSTATUS status;
    1250         struct netlogon_creds_CredentialState *creds;
     1254        struct netlogon_creds_CredentialState *creds = NULL;
    12511255        DATA_BLOB plaintext;
    12521256        struct samr_CryptPassword password_buf;
     
    12621266
    12631267        if (!NT_STATUS_IS_OK(status)) {
     1268                const char *computer_name = "<unknown>";
     1269
     1270                if (creds && creds->computer_name) {
     1271                        computer_name = creds->computer_name;
     1272                }
    12641273                DEBUG(2,("_netr_ServerPasswordSet2: netlogon_creds_server_step "
    12651274                        "failed. Rejecting auth request from client %s machine account %s\n",
    1266                         r->in.computer_name, creds->computer_name));
     1275                        r->in.computer_name, computer_name));
    12671276                TALLOC_FREE(creds);
    12681277                return status;
     
    12741283
    12751284        if (!extract_pw_from_buffer(p->mem_ctx, password_buf.data, &plaintext)) {
     1285                TALLOC_FREE(creds);
    12761286                return NT_STATUS_WRONG_PASSWORD;
    12771287        }
     
    12841294                                                   creds->account_name,
    12851295                                                   &nt_hash);
     1296        TALLOC_FREE(creds);
    12861297        return status;
    12871298}
Note: See TracChangeset for help on using the changeset viewer.