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 2f105ecec7c6ea50f02f8d93a56327ab143ba25e..bff5e51434ae5612b94ae6216c81a7f4e85c94b5 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;