projects
/
openvswitch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7f1089b
)
ofproto: Fix segfault sending packet_ins on transient connections.
author
Ben Pfaff
<blp@nicira.com>
Tue, 11 May 2010 19:42:00 +0000
(12:42 -0700)
committer
Ben Pfaff
<blp@nicira.com>
Tue, 11 May 2010 19:42:07 +0000
(12:42 -0700)
ofproto/ofproto.c
patch
|
blob
|
history
diff --git
a/ofproto/ofproto.c
b/ofproto/ofproto.c
index 2f105ecec7c6ea50f02f8d93a56327ab143ba25e..bff5e51434ae5612b94ae6216c81a7f4e85c94b5 100644
(file)
--- 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;