diff fuzz/fuzz-common.c @ 1770:66b29b054896

Fix FUZZ_NO_REPLACE_STDERR for fuzz.c
author Matt Johnston <matt@ucc.asn.au>
date Thu, 29 Oct 2020 22:14:38 +0800
parents 096a66e45212
children 833bf9947603
line wrap: on
line diff
--- a/fuzz/fuzz-common.c	Thu Oct 29 21:51:41 2020 +0800
+++ b/fuzz/fuzz-common.c	Thu Oct 29 22:14:38 2020 +0800
@@ -1,3 +1,4 @@
+#define FUZZ_NO_REPLACE_STDERR
 #include "includes.h"
 
 #include "includes.h"
@@ -9,16 +10,8 @@
 #include "bignum.h"
 #include "atomicio.h"
 #include "fuzz-wrapfd.h"
-
-#define FUZZ_NO_REPLACE_STDERR
 #include "fuzz.h"
 
-/* fuzz.h redefines stderr, we don't want that here */
-#ifdef origstderr
-#undef stderr
-#define stderr origstderr
-#endif // origstderr
-
 struct dropbear_fuzz_options fuzz;
 
 static void fuzz_dropbear_log(int UNUSED(priority), const char* format, va_list param);