diff options
author | Matt Johnston <matt@ucc.asn.au> | 2017-05-20 22:47:19 +0800 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2017-05-20 22:47:19 +0800 |
commit | c1694230516fe1c3d78e4fd23aebd5fbc00ce21c (patch) | |
tree | 613a04012ce46ddecb6216301c7cca710cf17aac /dbutil.c | |
parent | fdc6f323923b36add7ab7112b1b4d05368bd5902 (diff) |
glaring wrapfd problems fixed
--HG--
branch : fuzz
Diffstat (limited to 'dbutil.c')
-rw-r--r-- | dbutil.c | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -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")) |