acl-plugin: rework the optimization 7383, fortify acl-plugin memory behavior (VPP...
[vpp.git] / src / plugins / acl / acl_test.c
index 65ef800..704906a 100644 (file)
@@ -144,9 +144,9 @@ static void vl_api_acl_interface_list_details_t_handler
        out = format(out, "sw_if_index: %d, count: %d, n_input: %d\n", mp->sw_if_index, mp->count, mp->n_input);
         out = format(out, "   input ");
        for(i=0; i<mp->count; i++) {
-         out = format(out, "%d ", ntohl (mp->acls[i]));
-          if (i == mp->n_input-1)
+          if (i == mp->n_input)
             out = format(out, "\n  output ");
+         out = format(out, "%d ", ntohl (mp->acls[i]));
        }
         out = format(out, "\n");
         clib_warning("%s", out);