X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=secchan%2Fofproto.c;h=4266cbf71a36886466b45f6b06ce063551b4a9e1;hb=0c0afbecaace0509d7b2e5b7dee4b4eac7b31e19;hp=7fb0c646f5d752651098f3b962ccedddf73519ad;hpb=3d3d15a0e6e9104f6c29e3ab21f4ea7189dccbab;p=openvswitch diff --git a/secchan/ofproto.c b/secchan/ofproto.c index 7fb0c646..4266cbf7 100644 --- a/secchan/ofproto.c +++ b/secchan/ofproto.c @@ -1731,15 +1731,15 @@ rule_post_uninstall(struct ofproto *ofproto, struct rule *rule) if (rule->packet_count) { super->ip_tos = rule->ip_tos; } - } - /* Reset counters to prevent double counting if the rule ever gets - * reinstalled. */ - rule->packet_count = 0; - rule->byte_count = 0; - rule->accounted_bytes = 0; - rule->tcp_flags = 0; - rule->ip_tos = 0; + /* Reset counters to prevent double counting if the rule ever gets + * reinstalled. */ + rule->packet_count = 0; + rule->byte_count = 0; + rule->accounted_bytes = 0; + rule->tcp_flags = 0; + rule->ip_tos = 0; + } } static void