summaryrefslogtreecommitdiff
path: root/transaction.c
diff options
context:
space:
mode:
Diffstat (limited to 'transaction.c')
-rw-r--r--transaction.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/transaction.c b/transaction.c
index dcc32eb..8abed03 100644
--- a/transaction.c
+++ b/transaction.c
@@ -11,10 +11,10 @@
int cb_pam_conv(int num_msg, PAM_CONST struct pam_message **msg, struct pam_response **resp, void *appdata_ptr)
{
- *resp = calloc(num_msg, sizeof **resp);
if (num_msg <= 0 || num_msg > PAM_MAX_NUM_MSG)
return PAM_CONV_ERR;
+ *resp = calloc(num_msg, sizeof **resp);
if (!*resp)
return PAM_BUF_ERR;