From 89b9612d11e6ff92b176d9674983721c8c9fd3b0 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Tue, 11 May 2010 12:42:00 -0700 Subject: [PATCH] ofproto: Fix segfault sending packet_ins on transient connections. --- ofproto/ofproto.c | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.30.2