while(context_pam2.finished == 0) {
done = 1;
dispatch_run(DISPATCH_BLOCK, &done, appdata_ptr);
- if(context_pam2.finished == 0)
+ if (context_pam2.finished == 0)
debug("extra packet during conversation");
}
- if(context_pam2.num_received == context_pam2.num_expected) {
+ if (context_pam2.num_received == context_pam2.num_expected) {
*resp = context_pam2.responses;
return PAM_SUCCESS;
} else
if (nresp != context_pam2.num_expected)
fatal("%s: Received incorrect number of responses "
- "(expected %u, received %u)", __func__, nresp,
- context_pam2.num_expected);
+ "(expected %d, received %u)", __func__,
+ context_pam2.num_expected, nresp);
if (nresp > 100)
fatal("%s: too many replies", __func__);
resp = packet_get_string(&rlen);
context_pam2.responses[j].resp_retcode = PAM_SUCCESS;
- context_pam2.responses[j].resp = xstrdup(resp);
- xfree(resp);
+ context_pam2.responses[j].resp = resp;
context_pam2.num_received++;
}
packet_check_eom();
}
-
#endif