diff options
Diffstat (limited to 'kex.c')
-rw-r--r-- | kex.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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); |