aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2012-08-28 10:07:02 -0500
committerTed Gould <ted@gould.cx>2012-08-28 10:07:02 -0500
commit76e697d6982a705fcc59dc6652aac1d57ba9dcac (patch)
tree0ecd4c4ec254993687f9d7292decd3f9c910e099 /src
parent4ee87c35d88a9c6c475367317dea636bcb916102 (diff)
downloadlibpam-freerdp2-76e697d6982a705fcc59dc6652aac1d57ba9dcac.tar.gz
libpam-freerdp2-76e697d6982a705fcc59dc6652aac1d57ba9dcac.tar.bz2
libpam-freerdp2-76e697d6982a705fcc59dc6652aac1d57ba9dcac.zip
Protecting from a crazy thing that LightDM does
Diffstat (limited to 'src')
-rw-r--r--src/pam-freerdp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pam-freerdp.c b/src/pam-freerdp.c
index 00b84db..8331a27 100644
--- a/src/pam-freerdp.c
+++ b/src/pam-freerdp.c
@@ -86,7 +86,7 @@ get_item (pam_handle_t * pamh, int type)
}
struct pam_response * responses = NULL;
- if (conv->conv(1, &pmessage, &responses, conv->appdata_ptr) != PAM_SUCCESS) {
+ if (conv->conv(1, &pmessage, &responses, conv->appdata_ptr) != PAM_SUCCESS || responses == NULL) {
return NULL;
}