ofproto: Fix segfault sending packet_ins on transient connections.
authorBen Pfaff <blp@nicira.com>
Tue, 11 May 2010 19:42:00 +0000 (12:42 -0700)
committerBen Pfaff <blp@nicira.com>
Tue, 11 May 2010 19:42:07 +0000 (12:42 -0700)
ofproto/ofproto.c

index 2f105ec..bff5e51 100644 (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;