Changeset 221 for branches/samba-3.3.x/source/utils/ntlm_auth.c
- Timestamp:
- May 24, 2009, 7:17:10 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.3.x/source/utils/ntlm_auth.c
r206 r221 524 524 static const char zeros[16] = { 0, }; 525 525 NTSTATUS nt_status; 526 char *error_string ;526 char *error_string = NULL; 527 527 uint8 lm_key[8]; 528 528 uint8 user_sess_key[16]; 529 char *unix_name ;529 char *unix_name = NULL; 530 530 531 531 nt_status = contact_winbind_auth_crap(ntlmssp_state->user, ntlmssp_state->domain, … … 549 549 } 550 550 ntlmssp_state->auth_context = talloc_strdup(ntlmssp_state->mem_ctx, unix_name); 551 SAFE_FREE(unix_name);552 551 } else { 553 552 DEBUG(NT_STATUS_EQUAL(nt_status, NT_STATUS_ACCESS_DENIED) ? 0 : 3, … … 558 557 ntlmssp_state->auth_context = NULL; 559 558 } 559 560 SAFE_FREE(error_string); 561 SAFE_FREE(unix_name); 560 562 return nt_status; 561 563 } … … 1815 1817 x_fprintf(x_stdout, "Authenticated: No\n"); 1816 1818 x_fprintf(x_stdout, "Authentication-Error: %s\n.\n", error_string); 1817 SAFE_FREE(error_string);1818 1819 } else { 1819 1820 static char zeros[16]; … … 1843 1844 } 1844 1845 } 1846 SAFE_FREE(error_string); 1845 1847 } 1846 1848 /* clear out the state */
Note:
See TracChangeset
for help on using the changeset viewer.