Mercurial > dropbear
comparison netio.c @ 1786:a3b39df57c8b
fuzz: add an always-failing dropbear_listen() replacement
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sun, 06 Dec 2020 21:54:01 +0800 |
parents | 97ad26e397a5 |
children | 74f4a5987234 |
comparison
equal
deleted
inserted
replaced
1785:9026f976eee8 | 1786:a3b39df57c8b |
---|---|
459 struct linger linger; | 459 struct linger linger; |
460 int val; | 460 int val; |
461 int sock; | 461 int sock; |
462 | 462 |
463 TRACE(("enter dropbear_listen")) | 463 TRACE(("enter dropbear_listen")) |
464 | |
465 #if DROPBEAR_FUZZ | |
466 if (fuzz.fuzzing) { | |
467 return fuzz_dropbear_listen(address, port, socks, sockcount, errstring, maxfd); | |
468 } | |
469 #endif | |
464 | 470 |
465 memset(&hints, 0, sizeof(hints)); | 471 memset(&hints, 0, sizeof(hints)); |
466 hints.ai_family = AF_UNSPEC; /* TODO: let them flag v4 only etc */ | 472 hints.ai_family = AF_UNSPEC; /* TODO: let them flag v4 only etc */ |
467 hints.ai_socktype = SOCK_STREAM; | 473 hints.ai_socktype = SOCK_STREAM; |
468 | 474 |