From aa31e6051dd9fb471562f4a2180acf9692c73a10 Mon Sep 17 00:00:00 2001 From: Justin Pettit Date: Mon, 21 Feb 2011 17:21:20 -0800 Subject: [PATCH] vconn: Fix comparison that should be assignment in vconn_open_block(). Coverity #10702 --- lib/vconn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vconn.c b/lib/vconn.c index 2df7a27ac..6ea93667a 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); -- 2.43.0