summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/providers/dp_pam_data_util.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/providers/dp_pam_data_util.c b/src/providers/dp_pam_data_util.c
index 10e91f5f7..bed5db872 100644
--- a/src/providers/dp_pam_data_util.c
+++ b/src/providers/dp_pam_data_util.c
@@ -22,6 +22,8 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+#include <security/pam_modules.h>
+
#include "providers/data_provider.h"
#include "util/sss_cli_cmd.h"
@@ -48,6 +50,8 @@ struct pam_data *create_pam_data(TALLOC_CTX *mem_ctx)
goto failed;
}
+ pd->pam_status = PAM_SYSTEM_ERR;
+
pd->authtok = sss_authtok_new(pd);
if (pd->authtok == NULL) {
DEBUG(SSSDBG_CRIT_FAILURE, "talloc_zero failed.\n");