Merge commit 'origin/citrix'
[openvswitch] / lib / vconn.c
index 3210923140bb7e625034969e99f8af81c0b22669..aed1880d5e88540fa74e23fda71dfb5db1af9581 100644 (file)
@@ -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) {