diff options
author | Mattias Andrée <maandree@operamail.com> | 2013-11-22 05:11:49 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2013-11-22 05:11:49 +0100 |
commit | 85ff75043e1c622ad41c9fe877b09903e4d355a0 (patch) | |
tree | 3d9edb3f6053899a4474f3a7ee458889d5e11f7c /src/pam.c | |
parent | derp (diff) | |
download | libpassphrase-85ff75043e1c622ad41c9fe877b09903e4d355a0.tar.gz libpassphrase-85ff75043e1c622ad41c9fe877b09903e4d355a0.tar.bz2 libpassphrase-85ff75043e1c622ad41c9fe877b09903e4d355a0.tar.xz |
whoops
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r-- | src/pam.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -216,7 +216,7 @@ char authenticate_pam(void) * * @param num_msg Number of pointers in the array `msg` * @param msg Message from PAM - * @param resp Responses to PAM for by index corresponding messages + * @param resp Pointer to responses to PAM for by index corresponding messages * @param appdata_ptr (Not used) * @return `PAM_SUCCESS`, `PAM_CONV_ERR` or `PAM_BUF_ERR` */ @@ -226,6 +226,8 @@ int conv_pam(int num_msg, const struct pam_message** msg, struct pam_response** (void) appdata_ptr; + *resp = calloc(num_msg, sizeof(struct pam_response)); + for (i = 0; i < num_msg; i++) { ((*resp) + i)->resp = NULL; |