Made RPM work again

This commit is contained in:
2023-02-03 16:52:09 +01:00
parent 63b6209695
commit 6ca918bbb5
3 changed files with 5 additions and 3 deletions
+2 -2
View File
@@ -448,12 +448,12 @@ int elog_conv(int num_msg, const struct pam_message **mess, struct pam_response
/* if we do not have enough space to allocate the response, we have an error
* */
if((*resp = calloc(num_msg, sizeof(struct pam_response))) == NULL)
if((*resp = (pam_response*) calloc(num_msg, sizeof(struct pam_response))) == NULL)
return (PAM_BUF_ERR);
/* this is the password we got through the UI, this is put into the
* response, and given to pam_authenticate */
if(!(resptok = strdup(my_data))) {
if(!(resptok = strdup((const char *)my_data))) {
free(resp);
return (PAM_BUF_ERR);
}