diff --git a/src/iperf_api.c b/src/iperf_api.c index 4182441..4834daa 100644 --- a/src/iperf_api.c +++ b/src/iperf_api.c @@ -2163,7 +2163,7 @@ get_parameters(struct iperf_test *test) if ((j_p = cJSON_GetObjectItem(j, "repeating_payload")) != NULL) test->repeating_payload = 1; if ((j_p = cJSON_GetObjectItem(j, "zerocopy")) != NULL) - test->zerocopy = 1; + test->zerocopy = j_p->valueint; #if defined(HAVE_DONT_FRAGMENT) if ((j_p = cJSON_GetObjectItem(j, "dont_fragment")) != NULL) test->settings->dont_fragment = j_p->valueint;