From e77c17ee4a699052bb012751b527d72488350fc7 Mon Sep 17 00:00:00 2001 From: Damien Miller Date: Wed, 8 Jan 2003 12:37:03 +1100 Subject: - (djm) Avoid redundant xstrdup/xfree in auth2-pam.c. From Solar via markus@ --- auth2-pam.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'auth2-pam.c') diff --git a/auth2-pam.c b/auth2-pam.c index a2daf96b7..ac28fb245 100644 --- a/auth2-pam.c +++ b/auth2-pam.c @@ -1,5 +1,5 @@ #include "includes.h" -RCSID("$Id: auth2-pam.c,v 1.14 2002/06/28 16:48:12 mouring Exp $"); +RCSID("$Id: auth2-pam.c,v 1.15 2003/01/08 01:37:03 djm Exp $"); #ifdef USE_PAM #include @@ -154,8 +154,7 @@ input_userauth_info_response_pam(int type, u_int32_t seqnr, void *ctxt) resp = packet_get_string(&rlen); context_pam2.responses[j].resp_retcode = PAM_SUCCESS; - context_pam2.responses[j].resp = xstrdup(resp); - xfree(resp); + context_pam2.responses[j].resp = resp; context_pam2.num_received++; } -- cgit v1.2.3