vconn: Fix comparison that should be assignment in vconn_open_block().
authorJustin Pettit <jpettit@nicira.com>
Tue, 22 Feb 2011 01:21:20 +0000 (17:21 -0800)
committerJustin Pettit <jpettit@nicira.com>
Tue, 22 Feb 2011 18:14:54 +0000 (10:14 -0800)
Coverity #10702

lib/vconn.c

index 2df7a27ac121c9ff5279f94f086b1493c9aaff45..6ea93667a85fdd0e6abe17d61280b485cf554fc2 100644 (file)
@@ -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);