Mercurial > dropbear
diff 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 |
line wrap: on
line diff
--- a/netio.c Sun Dec 06 21:27:25 2020 +0800 +++ b/netio.c Sun Dec 06 21:54:01 2020 +0800 @@ -461,6 +461,12 @@ int sock; TRACE(("enter dropbear_listen")) + +#if DROPBEAR_FUZZ + if (fuzz.fuzzing) { + return fuzz_dropbear_listen(address, port, socks, sockcount, errstring, maxfd); + } +#endif memset(&hints, 0, sizeof(hints)); hints.ai_family = AF_UNSPEC; /* TODO: let them flag v4 only etc */