diff options
Diffstat (limited to 'roaming_client.c')
-rw-r--r-- | roaming_client.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/roaming_client.c b/roaming_client.c index 48009d781..81c496827 100644 --- a/roaming_client.c +++ b/roaming_client.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: roaming_client.c,v 1.4 2011/12/07 05:44:38 djm Exp $ */ | 1 | /* $OpenBSD: roaming_client.c,v 1.5 2013/05/17 00:13:14 djm Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2004-2009 AppGate Network Security AB | 3 | * Copyright (c) 2004-2009 AppGate Network Security AB |
4 | * | 4 | * |
@@ -187,10 +187,10 @@ roaming_resume(void) | |||
187 | debug("server doesn't allow resume"); | 187 | debug("server doesn't allow resume"); |
188 | goto fail; | 188 | goto fail; |
189 | } | 189 | } |
190 | xfree(str); | 190 | free(str); |
191 | for (i = 1; i < PROPOSAL_MAX; i++) { | 191 | for (i = 1; i < PROPOSAL_MAX; i++) { |
192 | /* kex algorithm taken care of so start with i=1 and not 0 */ | 192 | /* kex algorithm taken care of so start with i=1 and not 0 */ |
193 | xfree(packet_get_string(&len)); | 193 | free(packet_get_string(&len)); |
194 | } | 194 | } |
195 | i = packet_get_char(); /* first_kex_packet_follows */ | 195 | i = packet_get_char(); /* first_kex_packet_follows */ |
196 | if (i && (c = strchr(kexlist, ','))) | 196 | if (i && (c = strchr(kexlist, ','))) |
@@ -226,8 +226,7 @@ roaming_resume(void) | |||
226 | return 0; | 226 | return 0; |
227 | 227 | ||
228 | fail: | 228 | fail: |
229 | if (kexlist) | 229 | free(kexlist); |
230 | xfree(kexlist); | ||
231 | if (packet_get_connection_in() == packet_get_connection_out()) | 230 | if (packet_get_connection_in() == packet_get_connection_out()) |
232 | close(packet_get_connection_in()); | 231 | close(packet_get_connection_in()); |
233 | else { | 232 | else { |