Update verify_user_pam.c

change to g_memset
This commit is contained in:
RisingWater 2020-11-19 11:03:43 +08:00 committed by GitHub
parent 5d8f451a41
commit 9efdd92c2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -78,7 +78,7 @@ verify_pam_conv(int num_msg, const struct pam_message **msg,
reply[i].resp_retcode = PAM_SUCCESS;
break;
case PAM_TEXT_INFO:
memset(&reply[i], 0, sizeof(struct pam_response));
g_memset(&reply[i], 0, sizeof(struct pam_response));
break;
default:
g_printf("unknown in verify_pam_conv\r\n");