diff options
author | Damien Miller <djm@cvs.openbsd.org> | 2018-12-27 03:37:50 +0000 |
---|---|---|
committer | Damien Miller <djm@cvs.openbsd.org> | 2018-12-27 03:37:50 +0000 |
commit | 3ae5af0380d5d8543758583039db7ad86350a6b8 (patch) | |
tree | 78518ca48b4f30d74671831b7637666c0d9fe2ca /regress/usr.bin/ssh | |
parent | 8b2b36ac27417559f25e726f188a854c758e0afe (diff) |
ssh_packet_set_state() now frees ssh->kex implicitly, so don't
do explicit kex_free() beforehand
Diffstat (limited to 'regress/usr.bin/ssh')
-rw-r--r-- | regress/usr.bin/ssh/unittests/kex/test_kex.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/regress/usr.bin/ssh/unittests/kex/test_kex.c b/regress/usr.bin/ssh/unittests/kex/test_kex.c index 65bd97ebf9f..df305e9ff4f 100644 --- a/regress/usr.bin/ssh/unittests/kex/test_kex.c +++ b/regress/usr.bin/ssh/unittests/kex/test_kex.c @@ -1,4 +1,4 @@ -/* $OpenBSD: test_kex.c,v 1.2 2015/07/10 06:23:25 markus Exp $ */ +/* $OpenBSD: test_kex.c,v 1.3 2018/12/27 03:37:49 djm Exp $ */ /* * Regress test KEX * @@ -133,7 +133,6 @@ do_kex_with_key(char *kex, int keytype, int bits) ASSERT_INT_EQ(ssh_init(&server2, 1, NULL), 0); ASSERT_PTR_NE(server2, NULL); ASSERT_INT_EQ(ssh_add_hostkey(server2, private), 0); - kex_free(server2->kex); /* XXX or should ssh_packet_set_state()? */ ASSERT_INT_EQ(ssh_packet_set_state(server2, state), 0); ASSERT_INT_EQ(sshbuf_len(state), 0); sshbuf_free(state); |