From c799c30657373c68b243bdb2576bf1883bcfce4a Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Mon, 9 Dec 2013 15:38:25 -0800 Subject: [PATCH 1/1] ofproto: Make ofproto_enumerate_types() match its comment. The comment says that it clears the passed-in sset, but it didn't. The bug didn't actually affect any of the existing callers, which all passed in an empty sset. Signed-off-by: Ben Pfaff Acked-by: Jarno Rajahalme --- ofproto/ofproto.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ofproto/ofproto.c b/ofproto/ofproto.c index 424d2ced2..e41d72b62 100644 --- a/ofproto/ofproto.c +++ b/ofproto/ofproto.c @@ -432,6 +432,7 @@ ofproto_enumerate_types(struct sset *types) { size_t i; + sset_clear(types); for (i = 0; i < n_ofproto_classes; i++) { ofproto_classes[i]->enumerate_types(types); } -- 2.43.0