diff svr-session.c @ 1782:a6da10ac64b5 fuzz

fuzz: make postauth set authdone properly
author Matt Johnston <matt@ucc.asn.au>
date Thu, 03 Dec 2020 22:18:51 +0800
parents 435cfb9ec96e
children 42745af83b7d
line wrap: on
line diff
--- a/svr-session.c	Thu Dec 03 21:19:19 2020 +0800
+++ b/svr-session.c	Thu Dec 03 22:18:51 2020 +0800
@@ -195,6 +195,12 @@
 	/* start off with key exchange */
 	send_msg_kexinit();
 
+#if DROPBEAR_FUZZ
+    if (fuzz.fuzzing) {
+        fuzz_svr_hook_preloop();
+    }
+#endif
+
 	/* Run the main for loop. NULL is for the dispatcher - only the client
 	 * code makes use of it */
 	session_loop(svr_chansess_checksignal);