mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 14:25:26 +00:00
dpif-netdev: Fix use-after-free in dpif_netdev_recv.
Found by valgrind. Signed-off-by: Ben Pfaff <blp@nicira.com>
This commit is contained in:
@@ -956,7 +956,7 @@ dpif_netdev_recv(struct dpif *dpif, struct dpif_upcall *upcall,
|
||||
free(u);
|
||||
|
||||
ofpbuf_uninit(buf);
|
||||
*buf = *u->packet;
|
||||
*buf = *upcall->packet;
|
||||
|
||||
return 0;
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user