From: Ben Pfaff Date: Sat, 9 Jun 2012 15:55:29 +0000 (-0400) Subject: dpif-netdev: Fix use-after-free in dpif_netdev_recv. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a9c34071edc8371b5a4d9eebf8256723ffe92df2;p=openvswitch dpif-netdev: Fix use-after-free in dpif_netdev_recv. Found by valgrind. Signed-off-by: Ben Pfaff --- diff --git a/lib/dpif-netdev.c b/lib/dpif-netdev.c index fb0a863e..cade79ef 100644 --- a/lib/dpif-netdev.c +++ b/lib/dpif-netdev.c @@ -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 {