summaryrefslogtreecommitdiff
path: root/tests/dtls/dtls-stress.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/dtls/dtls-stress.c')
-rw-r--r--tests/dtls/dtls-stress.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/dtls/dtls-stress.c b/tests/dtls/dtls-stress.c
index 98cabb48dd..db7d7d82c1 100644
--- a/tests/dtls/dtls-stress.c
+++ b/tests/dtls/dtls-stress.c
@@ -1341,11 +1341,14 @@ int main(int argc, const char *argv[])
FAIL_ARG(sfinished);
}
} else if (strcmp("-cfinished", argv[arg]) == 0) {
+ const char **pname;
NEXT_ARG(cfinished);
+ if (full) pname = permutation_names5;
+ else if (resume) pname = permutation_names2;
+ else pname = permutation_names3;
if (!parse_permutation
- (argv[arg],
- full ? permutation_names5 :
- permutation_names3, &clientFinishedPermute)) {
+ (argv[arg], pname,
+ &clientFinishedPermute)) {
FAIL_ARG(cfinished);
}
} else {