fix confusing return value
@@ -1302,8 +1302,10 @@ ACVP_RESULT acvp_check_test_results (ACVP_CTX *ctx) {
* in the regisration response. Attempt to download the result
* for each vector set.
*/
- rv = ACVP_NO_CTX;
vs_entry = ctx->vs_list;
+ if (!vs_entry) {
+ return ACVP_MISSING_ARG;
+ }
while (vs_entry) {
rv = acvp_get_result_vsid(ctx, vs_entry->vs_id);
if (ctx->is_sample) {
