comparison dbutil.c @ 1358:6b89eb92f872 fuzz

glaring wrapfd problems fixed
author Matt Johnston <matt@ucc.asn.au>
date Sat, 20 May 2017 22:47:19 +0800
parents bbc0a0ee3843
children f9f930e1a516
comparison
equal deleted inserted replaced
1357:08f4fa4dc6a0 1358:6b89eb92f872
567 if (errno == ENODEV) { 567 if (errno == ENODEV) {
568 /* Some devices (like /dev/null redirected in) 568 /* Some devices (like /dev/null redirected in)
569 * can't be set to non-blocking */ 569 * can't be set to non-blocking */
570 TRACE(("ignoring ENODEV for setnonblocking")) 570 TRACE(("ignoring ENODEV for setnonblocking"))
571 } else { 571 } else {
572 dropbear_exit("Couldn't set nonblocking"); 572 #ifdef DROPBEAR_FUZZ
573 if (fuzz.fuzzing)
574 {
575 TRACE(("fuzzing ignore setnonblocking failure for %d", fd))
576 }
577 else
578 #endif
579 {
580 dropbear_exit("Couldn't set nonblocking");
581 }
573 } 582 }
574 } 583 }
575 TRACE(("leave setnonblocking")) 584 TRACE(("leave setnonblocking"))
576 } 585 }
577 586