---
utilities/ovs-ofctl.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/utilities/ovs-ofctl.c b/utilities/ovs-ofctl.c
index 81ce1f7..4f2999e 100644
--- a/utilities/ovs-ofctl.c
+++ b/utilities/ovs-ofctl.c
@@ -1121,8 +1121,8 @@ read_flows_from_switch(struct vconn *vconn, enum
nx_flow_format flow_format,
verbosity + 1));
}
- osr = reply->data;
- if (!(osr->flags & htons(OFPSF_REPLY_MORE))) {
+ osr = ofpbuf_at(reply, 0, sizeof *osr);
+ if (!osr || !(osr->flags & htons(OFPSF_REPLY_MORE))) {
done = true;
}
@@ -1151,8 +1151,6 @@ read_flows_from_switch(struct vconn *vconn, enum
nx_flow_format flow_format,
fte_insert(cls, &fs.rule, version, index);
}
-
- osr = ofpbuf_at(reply, 0, sizeof *osr);
} else {
VLOG_DBG("received reply with xid %08"PRIx32" "
"!= expected %08"PRIx32, recv_xid, send_xid);
--
1.7.4.2
_______________________________________________
dev mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/dev