mirror of
https://github.com/clearml/dropbear
synced 2025-06-15 02:38:10 +00:00
fix bad assertion
--HG-- branch : fuzz
This commit is contained in:
parent
89bdf3b0b9
commit
f7a664f127
@ -7,6 +7,7 @@
|
|||||||
#include "crypto_desc.h"
|
#include "crypto_desc.h"
|
||||||
#include "session.h"
|
#include "session.h"
|
||||||
#include "dbrandom.h"
|
#include "dbrandom.h"
|
||||||
|
#include "bignum.h"
|
||||||
#include "fuzz-wrapfd.h"
|
#include "fuzz-wrapfd.h"
|
||||||
|
|
||||||
struct dropbear_fuzz_options fuzz;
|
struct dropbear_fuzz_options fuzz;
|
||||||
@ -137,7 +138,6 @@ void fuzz_fake_send_kexdh_reply(void) {
|
|||||||
m_mp_alloc_init_multi(&ses.dh_K, NULL);
|
m_mp_alloc_init_multi(&ses.dh_K, NULL);
|
||||||
mp_set_int(ses.dh_K, 12345678);
|
mp_set_int(ses.dh_K, 12345678);
|
||||||
finish_kexhashbuf();
|
finish_kexhashbuf();
|
||||||
assert(!ses.dh_K);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int fuzz_run_preauth(const uint8_t *Data, size_t Size, int skip_kexmaths) {
|
int fuzz_run_preauth(const uint8_t *Data, size_t Size, int skip_kexmaths) {
|
||||||
|
Loading…
Reference in New Issue
Block a user