diff options
Diffstat (limited to 'source3/pam_smbpass/pam_smb_passwd.c')
-rw-r--r-- | source3/pam_smbpass/pam_smb_passwd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/pam_smbpass/pam_smb_passwd.c b/source3/pam_smbpass/pam_smb_passwd.c index bef587a916..8149bc1200 100644 --- a/source3/pam_smbpass/pam_smb_passwd.c +++ b/source3/pam_smbpass/pam_smb_passwd.c @@ -169,7 +169,7 @@ int pam_sm_chauthtok(pam_handle_t *pamh, int flags, /* tell user what is happening */ #define greeting "Changing password for " - Announce = (char *) malloc(sizeof(greeting)+strlen(user)); + Announce = SMB_MALLOC_ARRAY(char, sizeof(greeting)+strlen(user)); if (Announce == NULL) { _log_err(LOG_CRIT, "password: out of memory"); pdb_free_sam(&sampass); |