acl-plugin: fix a misplaced return (VPP-910) 31/7931/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 11:27:30 +0000 (13:27 +0200)
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>
src/plugins/acl/acl.c

index bc38265..6e8613b 100644 (file)
@@ -409,8 +409,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;
 }