diff options
author | David Hotham <david.hotham@metaswitch.com> | 2016-09-30 16:32:18 +0100 |
---|---|---|
committer | David Hotham <david.hotham@metaswitch.com> | 2016-09-30 16:33:55 +0100 |
commit | 83486fb3ef0f25f9787f9aa898eafc6562f1540e (patch) | |
tree | 75ac6dd500dc5da03122f9a08903f9f4ab3b91fa | |
parent | f53f482f35136cfea10664fdb41da02bb9f5b002 (diff) |
Fix double-free crash
loop0 interfaces were transmitting the same packets multiple times,
eventually causing them to be freed multiple times
Change-Id: I32fcf5cfa10e58bb9e9bbbbc1b9312518d00ee9f
Signed-off-by: David Hotham <david.hotham@metaswitch.com>
-rw-r--r-- | vnet/vnet/ethernet/interface.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/vnet/vnet/ethernet/interface.c b/vnet/vnet/ethernet/interface.c index 78d89f7e259..91d5a3c6aa3 100644 --- a/vnet/vnet/ethernet/interface.c +++ b/vnet/vnet/ethernet/interface.c @@ -363,6 +363,7 @@ simulated_ethernet_interface_tx (vlib_main_t * vm, else break; } + from += n_copy; vlib_put_next_frame (vm, node, next_index, n_left_to_next); |