xenserver: Avoid errors from ovs-vsctl at system shutdown.
[openvswitch] / ofproto / ofproto-sflow.c
index a96d8b496b980a91bf4be91990af493005d3b1c7..cc6a6935a0538d5695c7d323215064bded243a98 100644 (file)
@@ -354,7 +354,7 @@ ofproto_sflow_del_port(struct ofproto_sflow *os, uint16_t odp_port)
         }
         netdev_close(osp->netdev);
         free(osp);
-        port_array_set(&os->ports, odp_port, NULL);
+        port_array_delete(&os->ports, odp_port);
     }
 }