ovs-ofctl: Fix use-after-free error.
[openvswitch] / utilities / ovs-ofctl.c
index f925d846fab3bc66374c1a518de4bb99a14252c2..4ad1acb4d499c4cd99fba794149bfafe41e4d837 100644 (file)
@@ -1903,6 +1903,7 @@ recv_flow_stats_reply(struct vconn *vconn, ovs_be32 send_xid,
         case EOF:
             flags = ((const struct ofp_stats_msg *) reply->l2)->flags;
             ofpbuf_delete(reply);
+            reply = NULL;
             if (!(flags & htons(OFPSF_REPLY_MORE))) {
                 *replyp = NULL;
                 return false;