2
0
mirror of https://github.com/openvswitch/ovs synced 2025-10-29 15:28:56 +00:00

ofproto: Fix segfault sending packet_ins on transient connections.

This commit is contained in:
Ben Pfaff
2010-05-11 12:42:00 -07:00
parent 7f1089b503
commit 89b9612d11

View File

@@ -4028,6 +4028,8 @@ schedule_packet_in(struct ofconn *ofconn, struct ofpbuf *packet, int max_len,
buffer_id = UINT32_MAX;
} else if (ofproto->fail_open && fail_open_is_active(ofproto->fail_open)) {
buffer_id = pktbuf_get_null();
} else if (!ofconn->pktbuf) {
buffer_id = UINT32_MAX;
} else {
struct ofpbuf payload;
payload.data = opi->data;