From: Ben Pfaff Date: Tue, 11 May 2010 19:42:00 +0000 (-0700) Subject: ofproto: Fix segfault sending packet_ins on transient connections. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=89b9612d11e6ff92b176d9674983721c8c9fd3b0;p=openvswitch ofproto: Fix segfault sending packet_ins on transient connections. --- diff --git a/ofproto/ofproto.c b/ofproto/ofproto.c index 2f105ece..bff5e514 100644 --- a/ofproto/ofproto.c +++ b/ofproto/ofproto.c @@ -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;