artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
74b5c62
)
don't try to cleanup NULL KEX proposals in kex_prop_free();
author
djm
<djm@openbsd.org>
Fri, 17 Apr 2015 13:25:52 +0000
(13:25 +0000)
committer
djm
<djm@openbsd.org>
Fri, 17 Apr 2015 13:25:52 +0000
(13:25 +0000)
found by Jukka Taimisto and Markus Hietava
usr.bin/ssh/kex.c
patch
|
blob
|
history
diff --git
a/usr.bin/ssh/kex.c
b/usr.bin/ssh/kex.c
index
d5d7e5c
..
b328e5f
100644
(file)
--- a/
usr.bin/ssh/kex.c
+++ b/
usr.bin/ssh/kex.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: kex.c,v 1.10
5 2015/01/30 00:22:25
djm Exp $ */
+/* $OpenBSD: kex.c,v 1.10
6 2015/04/17 13:25:52
djm Exp $ */
/*
* Copyright (c) 2000, 2001 Markus Friedl. All rights reserved.
*
@@
-210,6
+210,8
@@
kex_prop_free(char **proposal)
{
u_int i;
+ if (proposal == NULL)
+ return;
for (i = 0; i < PROPOSAL_MAX; i++)
free(proposal[i]);
free(proposal);