git://git.onelab.eu
/
sliver-openvswitch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix vconn_transact() bug introduced in commit 65ac65a6d2,
[sliver-openvswitch.git]
/
lib
/
vconn.c
diff --git
a/lib/vconn.c
b/lib/vconn.c
index
b969628
..
b37656a
100644
(file)
--- a/
lib/vconn.c
+++ b/
lib/vconn.c
@@
-598,7
+598,9
@@
vconn_transact(struct vconn *vconn, struct ofpbuf *request,
*replyp = NULL;
error = vconn_send_block(vconn, request);
- ofpbuf_delete(request);
+ if (error) {
+ ofpbuf_delete(request);
+ }
return error ? error : vconn_recv_xid(vconn, send_xid, replyp);
}