summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/sss_client/pam_sss.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sss_client/pam_sss.c b/src/sss_client/pam_sss.c
index 539acb0b..f35f06f2 100644
--- a/src/sss_client/pam_sss.c
+++ b/src/sss_client/pam_sss.c
@@ -413,7 +413,7 @@ static int do_pam_conversation(pam_handle_t *pamh, const int msg_style,
}
} while (state != SSS_PAM_CONV_DONE);
- *_answer = answer;
+ if(answer) *_answer = answer;
return PAM_SUCCESS;
failed: