1
0
mirror of https://github.com/openbsd/src.git synced 2026-04-27 23:56:05 +00:00

raise the min number of connections to 1. 0 doesn't make sense.

ok djm@
This commit is contained in:
dlg
2025-11-26 07:27:13 +00:00
parent cf33112e94
commit 62b1fc1bb7

View File

@@ -1,4 +1,4 @@
/* $OpenBSD: tcpbench.c,v 1.73 2024/12/30 21:19:29 bluhm Exp $ */
/* $OpenBSD: tcpbench.c,v 1.74 2025/11/26 07:27:13 dlg Exp $ */
/*
* Copyright (c) 2008 Damien Miller <djm@mindrot.org>
@@ -1209,7 +1209,7 @@ main(int argc, char **argv)
err(1, "setrtable");
break;
case 'n':
nconn = strtonum(optarg, 0, 65535, &errstr);
nconn = strtonum(optarg, 1, 65535, &errstr);
if (errstr != NULL)
errx(1, "number of connections is %s: %s",
errstr, optarg);