From c1694230516fe1c3d78e4fd23aebd5fbc00ce21c Mon Sep 17 00:00:00 2001 From: Matt Johnston Date: Sat, 20 May 2017 22:47:19 +0800 Subject: glaring wrapfd problems fixed --HG-- branch : fuzz --- dbutil.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'dbutil.c') diff --git a/dbutil.c b/dbutil.c index 830e8d2..4c835a4 100644 --- a/dbutil.c +++ b/dbutil.c @@ -569,7 +569,16 @@ void setnonblocking(int fd) { * can't be set to non-blocking */ TRACE(("ignoring ENODEV for setnonblocking")) } else { - dropbear_exit("Couldn't set nonblocking"); +#ifdef DROPBEAR_FUZZ + if (fuzz.fuzzing) + { + TRACE(("fuzzing ignore setnonblocking failure for %d", fd)) + } + else +#endif + { + dropbear_exit("Couldn't set nonblocking"); + } } } TRACE(("leave setnonblocking")) -- cgit v1.2.3