Ignore:
Timestamp:
May 24, 2009, 7:17:10 AM (16 years ago)
Author:
Herwig Bauernfeind
Message:

Update Samba 3.3 to 3.3.1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.3.x/source/utils/ntlm_auth.c

    r206 r221  
    524524        static const char zeros[16] = { 0, };
    525525        NTSTATUS nt_status;
    526         char *error_string;
     526        char *error_string = NULL;
    527527        uint8 lm_key[8];
    528528        uint8 user_sess_key[16];
    529         char *unix_name;
     529        char *unix_name = NULL;
    530530
    531531        nt_status = contact_winbind_auth_crap(ntlmssp_state->user, ntlmssp_state->domain,
     
    549549                }
    550550                ntlmssp_state->auth_context = talloc_strdup(ntlmssp_state->mem_ctx, unix_name);
    551                 SAFE_FREE(unix_name);
    552551        } else {
    553552                DEBUG(NT_STATUS_EQUAL(nt_status, NT_STATUS_ACCESS_DENIED) ? 0 : 3,
     
    558557                ntlmssp_state->auth_context = NULL;
    559558        }
     559
     560        SAFE_FREE(error_string);
     561        SAFE_FREE(unix_name);
    560562        return nt_status;
    561563}
     
    18151817                                x_fprintf(x_stdout, "Authenticated: No\n");
    18161818                                x_fprintf(x_stdout, "Authentication-Error: %s\n.\n", error_string);
    1817                                 SAFE_FREE(error_string);
    18181819                        } else {
    18191820                                static char zeros[16];
     
    18431844                                }
    18441845                        }
     1846                        SAFE_FREE(error_string);
    18451847                }
    18461848                /* clear out the state */
Note: See TracChangeset for help on using the changeset viewer.