[ovs-dev] [PATCH] ofp-util: Make decoding switch features harder to misuse (and fix leak).

William Tu u9012063 at gmail.com
Thu Jan 21 16:19:26 UTC 2016


Hi Ben,

in port_iterator_fetch_features, why do we need to decode/pull the feature
but later on never use it at all?

Thanks
William

@@ -865,8 +864,7 @@ port_iterator_fetch_features(struct port_iterator *pi)

>      }
>
>      struct ofputil_switch_features features;
> -    enum ofperr error = ofputil_decode_switch_features(oh, &features,
> -                                                       pi->reply);
> +    enum ofperr error = ofputil_pull_switch_features(pi->reply,
> &features);
>      if (error) {
>          ovs_fatal(0, "%s: failed to decode features reply (%s)",
>                    vconn_get_name(pi->vconn), ofperr_to_string(error));
> --
> 2.1.3
>
>



More information about the dev mailing list