summaryrefslogtreecommitdiffstats
path: root/contrib/openpam
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2002-04-17 22:57:09 +0000
committerdes <des@FreeBSD.org>2002-04-17 22:57:09 +0000
commit6a4fdf7d41079b8ce571ca46300fd5cc1289086e (patch)
tree3b8c965a9055be98d5bf9035a1b5dfde7b35491a /contrib/openpam
parentd1895aba33450dc0ff3d7c9d82543e6ea666a0f7 (diff)
downloadFreeBSD-src-6a4fdf7d41079b8ce571ca46300fd5cc1289086e.zip
FreeBSD-src-6a4fdf7d41079b8ce571ca46300fd5cc1289086e.tar.gz
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
Diffstat (limited to 'contrib/openpam')
-rw-r--r--contrib/openpam/lib/pam_vprompt.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/openpam/lib/pam_vprompt.c b/contrib/openpam/lib/pam_vprompt.c
index e5098ae..eaf9fed 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 <stdarg.h>
@@ -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);
OpenPOWER on IntegriCloud