X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fodp-util.c;h=901dac3b4c80cba5649ff5a58af604632fde2127;hb=26df8b3e3b288aae3340059faebcbda8eb22fbdb;hp=0574c9f359b80463a9db2d717932334bc879a12e;hpb=2508ac16defd417b94fb69689b6b1da4fbc76282;p=openvswitch diff --git a/lib/odp-util.c b/lib/odp-util.c index 0574c9f3..901dac3b 100644 --- a/lib/odp-util.c +++ b/lib/odp-util.c @@ -14,8 +14,8 @@ * limitations under the License. */ -#include #include +#include #include "odp-util.h" #include #include @@ -1976,7 +1976,7 @@ static void commit_set_port_action(const struct flow *flow, struct flow *base, struct ofpbuf *odp_actions) { - if (!base->tp_src || !base->tp_dst) { + if (!base->tp_src && !base->tp_dst) { return; }