diff svr-session.c @ 1347:b28624698130 fuzz

copy over some fuzzing code from AFL branch
author Matt Johnston <matt@ucc.asn.au>
date Fri, 12 May 2017 23:14:54 +0800
parents b66a483f3dcb
children 5c2899e35b63
line wrap: on
line diff
--- a/svr-session.c	Fri May 12 22:14:49 2017 +0800
+++ b/svr-session.c	Fri May 12 23:14:54 2017 +0800
@@ -191,6 +191,12 @@
 		m_free(svr_opts.ports[i]);
 	}
 
+#ifdef DROPBEAR_FUZZ
+    if (opts.fuzz.fuzzing) {
+        longjmp(opts.fuzz.jmp, 1);
+    }
+#endif
+    
 	exit(exitcode);
 
 }