changeset 1353:f3c8975de38e fuzz

setup svr_dropbear_exit
author Matt Johnston <matt@ucc.asn.au>
date Thu, 18 May 2017 23:36:54 +0800
parents 66c1cfd5e100
children 7618759e9327
files fuzz-common.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/fuzz-common.c	Sun May 14 00:00:21 2017 +0800
+++ b/fuzz-common.c	Thu May 18 23:36:54 2017 +0800
@@ -6,6 +6,8 @@
 #include "fuzz.h"
 #include "dbutil.h"
 #include "runopts.h"
+#include "crypto_desc.h"
+#include "session.h"
 
 struct dropbear_fuzz_options fuzz;
 
@@ -20,6 +22,9 @@
     struct passwd *pw;
 
     common_setup_fuzzer();
+    
+    _dropbear_exit = svr_dropbear_exit;
+    _dropbear_log = svr_dropbear_log;
 
     char *argv[] = { 
         "-E",