2
0
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:
Ben Pfaff
2012-06-09 11:55:29 -04:00
parent ce00d49822
commit a9c34071ed

View File

@@ -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 {