X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fvconn.c;h=aed1880d5e88540fa74e23fda71dfb5db1af9581;hb=057fed2b5cfe81bf3ab328a9514a1caf0dfa4f55;hp=3210923140bb7e625034969e99f8af81c0b22669;hpb=1d87357a1322c2faa290452c08c7f794c0be848b;p=openvswitch diff --git a/lib/vconn.c b/lib/vconn.c index 32109231..aed1880d 100644 --- a/lib/vconn.c +++ b/lib/vconn.c @@ -1230,7 +1230,7 @@ check_action(const union ofp_action *a, unsigned int len, int max_ports) { int error; - switch (a->type) { + switch (ntohs(a->type)) { case OFPAT_OUTPUT: error = check_action_port(ntohs(a->output.port), max_ports); if (error) {