From dab45bfd5748e7d871ae312df6e9b7ce89a8f46c Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Tue, 7 Dec 2010 16:58:41 -0800 Subject: [PATCH] ofp-print: Verify size of OFPAT_ENQUEUE actions. This fixes a bug, although not a very serious one. --- lib/ofp-print.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/ofp-print.c b/lib/ofp-print.c index 28f2f3ce..30b9b6ba 100644 --- a/lib/ofp-print.c +++ b/lib/ofp-print.c @@ -298,6 +298,10 @@ ofp_print_action(struct ds *string, const struct ofp_action_header *ah, [OFPAT_SET_TP_DST] = { sizeof(struct ofp_action_tp_port), sizeof(struct ofp_action_tp_port), + }, + [OFPAT_ENQUEUE] = { + sizeof(struct ofp_action_enqueue), + sizeof(struct ofp_action_enqueue), } /* OFPAT_VENDOR is not here, since it would blow up the array size. */ }; -- 2.30.2