From 9bf3d9301e2473c034c947b45ee06ab6b5af5877 Mon Sep 17 00:00:00 2001
From: Ben Pfaff <blp@nicira.com>
Date: Tue, 9 Sep 2008 13:10:09 -0700
Subject: [PATCH] Zero out otherwise uninitialized padding in
 make_unbuffered_packet_out().

Found with valgrind.
---
 lib/vconn.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/vconn.c b/lib/vconn.c
index acb35d44..723146ad 100644
--- a/lib/vconn.c
+++ b/lib/vconn.c
@@ -552,7 +552,7 @@ make_unbuffered_packet_out(const struct buffer *packet,
     size_t size = sizeof *opo + sizeof opo->actions[0];
     struct buffer *out = buffer_new(size + packet->size);
     opo = buffer_put_uninit(out, size);
-    memset(opo, 0, sizeof *opo);
+    memset(opo, 0, size);
     opo->header.version = OFP_VERSION;
     opo->header.type = OFPT_PACKET_OUT;
     opo->buffer_id = htonl(UINT32_MAX);
-- 
2.30.2