Skip to content

Commit

Permalink
permissions: Fix 'subnet_dump' MI command
Browse files Browse the repository at this point in the history
Reported by Ovidiu Sas
  • Loading branch information
liviuchircu committed Nov 21, 2019
1 parent 2528d81 commit b72d0fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/permissions/mi.c
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ mi_response_t *mi_subnet_dump(const mi_params_t *params,
return 0;

parts_arr = add_mi_array(resp_obj, MI_SSTR("Partitions"));
if (parts_arr)
if (!parts_arr)
goto error;

for (it=get_part_structs(); it; it = it->next) {
Expand Down

0 comments on commit b72d0fe

Please sign in to comment.