From: Ben Pfaff Date: Thu, 27 Mar 2008 21:24:47 +0000 (-0700) Subject: Initialize pad byte in ofp_packet_in messages, to avoid leaking kernel state. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8dae6279306ee8ccc16888bef5ff3a3dc79f1a58;p=openvswitch Initialize pad byte in ofp_packet_in messages, to avoid leaking kernel state. --- diff --git a/datapath/datapath.c b/datapath/datapath.c index 1b5a2cd5..b4c1615b 100644 --- a/datapath/datapath.c +++ b/datapath/datapath.c @@ -536,6 +536,7 @@ dp_output_control(struct datapath *dp, struct sk_buff *skb, opi->total_len = htons(skb->len); opi->in_port = htons(skb->dev->br_port->port_no); opi->reason = reason; + opi->pad = 0; SKB_LINEAR_ASSERT(skb); memcpy(opi->data, skb_mac_header(skb), fwd_len);