From 075cb5663f306798a1338da74051f6077088fc8d Mon Sep 17 00:00:00 2001 From: Simon Josefsson Date: Thu, 9 Sep 2010 20:28:20 +0000 Subject: [PATCH] Handle ^D at su prompt. --- pam_yubico.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pam_yubico.c b/pam_yubico.c index 044bc2c..09bff6c 100644 --- a/pam_yubico.c +++ b/pam_yubico.c @@ -533,6 +533,12 @@ pam_sm_authenticate (pam_handle_t * pamh, goto done; } + if (resp->resp == NULL) + { + DBG (("conv returned NULL passwd?")); + goto done; + } + DBG (("conv returned: %s", resp->resp)); password = resp->resp;