From a9c34071edc8371b5a4d9eebf8256723ffe92df2 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Sat, 9 Jun 2012 11:55:29 -0400 Subject: [PATCH] dpif-netdev: Fix use-after-free in dpif_netdev_recv. Found by valgrind. Signed-off-by: Ben Pfaff --- lib/dpif-netdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- 2.30.2