acl-plugin: fix a misplaced return (VPP-910) 35/7935/1
authorAndrew Yourtchenko <ayourtch@gmail.com>
Tue, 8 Aug 2017 11:27:30 +0000 (13:27 +0200)
committerAndrew Yourtchenko <ayourtch@gmail.com>
Tue, 8 Aug 2017 13:27:04 +0000 (13:27 +0000)
It was uncaught by make test because the corresponding tests are not there yet - part of 17.10 deliverables

Change-Id: I55456f1874ce5665a06ee411c7abf37cd19ed814
Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com>
(cherry picked from commit 58013b73509521789608f24a79a00177797ff9b1)

src/plugins/acl/acl.c

index 3c1e819..70dc8c6 100644 (file)
@@ -411,8 +411,8 @@ acl_classify_add_del_table_small (vnet_classify_main_t * cm, u8 * mask,
                                      table_index, current_data_flag,
                                      current_data_offset, is_add,
                                      1 /* delete_chain */);
-  return ret;
   clib_mem_set_heap (oldheap);
+  return ret;
 }