diff options
author | Ben Pfaff <blp@nicira.com> | 2012-06-09 11:55:29 -0400 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2012-06-09 21:07:46 -0700 |
commit | a9c34071edc8371b5a4d9eebf8256723ffe92df2 (patch) | |
tree | e2949c606d68581d5879921f78fa7abb7b63b43c /lib/dpif-netdev.c | |
parent | ce00d4982293323384f32e5a35eb3441f350d20a (diff) |
dpif-netdev: Fix use-after-free in dpif_netdev_recv.
Found by valgrind.
Signed-off-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'lib/dpif-netdev.c')
-rw-r--r-- | lib/dpif-netdev.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 { |