[ovs-dev] [coverity 14/14] vconn: Fix comparison that should be assignment in vconn_open_block().

Justin Pettit jpettit at nicira.com
Tue Feb 22 01:44:57 UTC 2011


Coverity #10702
---
 lib/vconn.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lib/vconn.c b/lib/vconn.c
index 2df7a27..6ea9366 100644
--- a/lib/vconn.c
+++ b/lib/vconn.c
@@ -283,7 +283,7 @@ vconn_open_block(const char *name, int min_version, struct vconn **vconnp)
 
     error = vconn_open(name, min_version, &vconn);
     if (!error) {
-        while ((error == vconn_connect(vconn)) == EAGAIN) {
+        while ((error = vconn_connect(vconn)) == EAGAIN) {
             vconn_run(vconn);
             vconn_run_wait(vconn);
             vconn_connect_wait(vconn);
-- 
1.7.1





More information about the dev mailing list