summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2003-01-08 12:37:03 +1100
committerDamien Miller <djm@mindrot.org>2003-01-08 12:37:03 +1100
commite77c17ee4a699052bb012751b527d72488350fc7 (patch)
tree899d1201a5787ec5136c0b1f4d640c855a269916
parent13dd03a0e2605f0ec2da811aa814a58bc2dd9a3d (diff)
- (djm) Avoid redundant xstrdup/xfree in auth2-pam.c. From Solar via markus@
-rw-r--r--ChangeLog3
-rw-r--r--auth2-pam.c5
2 files changed, 4 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 0e00a6c9c..fae787ac0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,6 @@
120030108 120030108
2 - (djm) Sync openbsd-compat/ with OpenBSD -current 2 - (djm) Sync openbsd-compat/ with OpenBSD -current
3 - (djm) Avoid redundant xstrdup/xfree in auth2-pam.c. From Solar via markus@
3 4
420030107 520030107
5 - (djm) Bug #401: Work around Linux breakage with IPv6 mapped addresses. 6 - (djm) Bug #401: Work around Linux breakage with IPv6 mapped addresses.
@@ -945,4 +946,4 @@
945 save auth method before monitor_reset_key_state(); bugzilla bug #284; 946 save auth method before monitor_reset_key_state(); bugzilla bug #284;
946 ok provos@ 947 ok provos@
947 948
948$Id: ChangeLog,v 1.2549 2003/01/08 00:16:48 djm Exp $ 949$Id: ChangeLog,v 1.2550 2003/01/08 01:37:03 djm Exp $
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 @@
1#include "includes.h" 1#include "includes.h"
2RCSID("$Id: auth2-pam.c,v 1.14 2002/06/28 16:48:12 mouring Exp $"); 2RCSID("$Id: auth2-pam.c,v 1.15 2003/01/08 01:37:03 djm Exp $");
3 3
4#ifdef USE_PAM 4#ifdef USE_PAM
5#include <security/pam_appl.h> 5#include <security/pam_appl.h>
@@ -154,8 +154,7 @@ input_userauth_info_response_pam(int type, u_int32_t seqnr, void *ctxt)
154 154
155 resp = packet_get_string(&rlen); 155 resp = packet_get_string(&rlen);
156 context_pam2.responses[j].resp_retcode = PAM_SUCCESS; 156 context_pam2.responses[j].resp_retcode = PAM_SUCCESS;
157 context_pam2.responses[j].resp = xstrdup(resp); 157 context_pam2.responses[j].resp = resp;
158 xfree(resp);
159 context_pam2.num_received++; 158 context_pam2.num_received++;
160 } 159 }
161 160