summaryrefslogtreecommitdiffhomepage
path: root/dbutil.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2017-05-20 22:47:19 +0800
committerMatt Johnston <matt@ucc.asn.au>2017-05-20 22:47:19 +0800
commitc1694230516fe1c3d78e4fd23aebd5fbc00ce21c (patch)
tree613a04012ce46ddecb6216301c7cca710cf17aac /dbutil.c
parentfdc6f323923b36add7ab7112b1b4d05368bd5902 (diff)
glaring wrapfd problems fixed
--HG-- branch : fuzz
Diffstat (limited to 'dbutil.c')
-rw-r--r--dbutil.c11
1 files changed, 10 insertions, 1 deletions
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"))