summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2016-05-16 18:08:27 +0200
committerNikos Mavrogiannopoulos <nmav@redhat.com>2016-05-16 18:08:30 +0200
commit3ed8c5f5ea27a444b411dc6f81c259caaece5d23 (patch)
treeda03a2d38a9f8444d332b617d325877463c06e87
parent60a179ad36225ba0383fbd68a11129b32c43bf90 (diff)
downloadgnutls-3ed8c5f5ea27a444b411dc6f81c259caaece5d23.tar.gz
tests: dtls-stress: fix debug argument accounting
It was not being considered when it was not the last argument.
-rw-r--r--tests/dtls/dtls-stress.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/dtls/dtls-stress.c b/tests/dtls/dtls-stress.c
index a580d65bdf..a07af8cc91 100644
--- a/tests/dtls/dtls-stress.c
+++ b/tests/dtls/dtls-stress.c
@@ -1439,7 +1439,8 @@ int main(int argc, const char *argv[])
if (*end == '\0') {
debug = level;
arg++;
- }
+ } else
+ debug++;
} else {
debug++;
}