From: Justin Pettit Date: Tue, 22 Feb 2011 01:21:20 +0000 (-0800) Subject: vconn: Fix comparison that should be assignment in vconn_open_block(). X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aa31e6051dd9fb471562f4a2180acf9692c73a10;p=openvswitch vconn: Fix comparison that should be assignment in vconn_open_block(). Coverity #10702 --- diff --git a/lib/vconn.c b/lib/vconn.c index 2df7a27a..6ea93667 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);