Merge commit 'origin/ctrix' into k
authorJustin Pettit <jpettit@nicira.com>
Sat, 12 Sep 2009 01:40:38 +0000 (18:40 -0700)
committerJustin Pettit <jpettit@nicira.com>
Sat, 12 Sep 2009 01:40:38 +0000 (18:40 -0700)
lib/vconn.c

index b5e1102..12680c5 100644 (file)
@@ -1247,7 +1247,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) {