From 11d81aa6d46e96933a49814bcaed1c1eb89b89b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dag-Erling=20Sm=C3=B8rgrav?= Date: Wed, 17 Apr 2002 22:57:09 +0000 Subject: [PATCH] Set rsp to NULL before calling the conversation function so we can later detect if it hasn't been touched (perforce change 9889) Sponsored by: DARPA, NAI Labs --- contrib/openpam/lib/pam_vprompt.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/contrib/openpam/lib/pam_vprompt.c b/contrib/openpam/lib/pam_vprompt.c index e5098ae3139b..eaf9fed9d940 100644 --- a/contrib/openpam/lib/pam_vprompt.c +++ b/contrib/openpam/lib/pam_vprompt.c @@ -31,7 +31,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $P4: //depot/projects/openpam/lib/pam_vprompt.c#5 $ + * $P4: //depot/projects/openpam/lib/pam_vprompt.c#6 $ */ #include @@ -72,6 +72,7 @@ pam_vprompt(pam_handle_t *pamh, msg.msg_style = style; msg.msg = msgbuf; msgp = &msg; + rsp = NULL; r = (conv->conv)(1, &msgp, &rsp, conv->appdata_ptr); *resp = rsp == NULL ? NULL : rsp->resp; free(rsp);