X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=test.c;h=47732e47e7c31cfce6b1674eb5ec2ef08a8388b2;hb=1ba5f4c56c38b3c986dabb5d0feced74d81cd490;hp=d7e1cdc5788db3dc8638e3fba93ecd09a292fb0b;hpb=5150efe030a7d7d603dca25c405ebf6b92ecd623;p=utcp diff --git a/test.c b/test.c index d7e1cdc..47732e4 100644 --- a/test.c +++ b/test.c @@ -113,6 +113,9 @@ int main(int argc, char *argv[]) { reorder = atof(getenv("REORDER") ?: "0"); reorder_dist = atoi(getenv("REORDER_DIST") ?: "10"); + if(dropto < dropfrom) + dropto = 1 << 30; + struct addrinfo *ai; struct addrinfo hint = { .ai_flags = server ? AI_PASSIVE : 0,