aboutsummaryrefslogtreecommitdiff
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
commit645af42abcb4b3ac922705751d134d31d8959912 (patch)
tree0ecd4c4ec254993687f9d7292decd3f9c910e099
parentedbe36fbccacebc2de6d15d0bfa3d480dd69a135 (diff)
downloadlibpam-x2go-645af42abcb4b3ac922705751d134d31d8959912.tar.gz
libpam-x2go-645af42abcb4b3ac922705751d134d31d8959912.tar.bz2
libpam-x2go-645af42abcb4b3ac922705751d134d31d8959912.zip
Protecting from a crazy thing that LightDM does
-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;
}