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:09:05 -0700 |
commit | 3ec9738d5a81dcf260e2a0c8f619b7515454eb93 (patch) | |
tree | 122f2cf461dfbb2e2f11c45db0c594eda01f1357 | |
parent | eebad56b6542e5018d28a6750b0979e80133bc6d (diff) | |
download | openvswitch-3ec9738d5a81dcf260e2a0c8f619b7515454eb93.tar.gz |
dpif-netdev: Fix use-after-free in dpif_netdev_recv.
Found by valgrind.
Signed-off-by: Ben Pfaff <blp@nicira.com>
-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 fb0a863e3..cade79efe 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 { |