Merging upstream version 2.11.2.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-02-09 09:07:43 +01:00
parent d1371b6372
commit b4e926aa99
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
5 changed files with 24 additions and 13 deletions

View file

@ -239,9 +239,9 @@ static int perf_opt_long_parse(char* optarg)
char* arg;
if ((arg = strchr(optarg, '='))) {
optlen = arg - optarg;
arg++;
optlen = strlen(arg);
if (optlen < 1) {
if (optlen < 1 || !strlen(arg)) {
return -1;
}
} else {

View file

@ -10,3 +10,5 @@
# test for broken long opt in v2.11.0
../dnsperf -O suppress=test 2>&1 |grep -q "unknown message type to suppress: test"
# ...and in v2.11.1, issue #234
../dnsperf -O doh-uri=https://blahblah.com/dns-query -O suppress=timeouts -h