2025-01-23 Fred Gleason <fredg@paravelsystems.com>

* Fixed a bug in 'RDPam' that could cause a segfault when processing
	an authentication.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason
2025-01-23 13:43:27 -05:00
parent 03c16cb1ae
commit 8f1b9d6d78
3 changed files with 12 additions and 32 deletions

View File

@@ -2,7 +2,7 @@
//
// Authenticate a PAM name.
//
// (C) Copyright 2010,2016 Fred Gleason <fredg@paravelsystems.com>
// (C) Copyright 2010-2025 Fred Gleason <fredg@paravelsystems.com>
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 2 as
@@ -30,11 +30,8 @@ class RDPam
bool authenticate(const QString &username,const QString &token);
private:
void CleanupPam();
QString system_pam_service;
QString system_token;
struct pam_response *system_pam_response;
int system_pam_response_count;
friend int RDPamCallback(int num_msg, const struct pam_message **msg,
struct pam_response **resp, void *appdata_ptr);
};