summaryrefslogtreecommitdiff
path: root/kex.c
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2015-08-19 17:00:17 +0100
committerColin Watson <cjwatson@debian.org>2015-08-19 17:00:17 +0100
commit544df7a04ae5b5c1fc30be7c445ad685d7a02dc9 (patch)
tree33d2a87dd50fe5894ac6ec4579c83401b7ab00a4 /kex.c
parentbaccdb349b31c47cd76fb63211f754ed33a9707e (diff)
parent7de4b03a6e4071d454b72927ffaf52949fa34545 (diff)
Import openssh_6.9p1.orig.tar.gz
Diffstat (limited to 'kex.c')
-rw-r--r--kex.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/kex.c b/kex.c
index 8c2b00179..dbc55ef7e 100644
--- a/kex.c
+++ b/kex.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: kex.c,v 1.105 2015/01/30 00:22:25 djm Exp $ */ 1/* $OpenBSD: kex.c,v 1.106 2015/04/17 13:25:52 djm Exp $ */
2/* 2/*
3 * Copyright (c) 2000, 2001 Markus Friedl. All rights reserved. 3 * Copyright (c) 2000, 2001 Markus Friedl. All rights reserved.
4 * 4 *
@@ -229,6 +229,8 @@ kex_prop_free(char **proposal)
229{ 229{
230 u_int i; 230 u_int i;
231 231
232 if (proposal == NULL)
233 return;
232 for (i = 0; i < PROPOSAL_MAX; i++) 234 for (i = 0; i < PROPOSAL_MAX; i++)
233 free(proposal[i]); 235 free(proposal[i]);
234 free(proposal); 236 free(proposal);