From mboxrd@z Thu Jan 1 00:00:00 1970 From: Fabio M. Di Nitto Date: Wed, 23 Nov 2011 11:15:20 +0100 Subject: [Cluster-devel] [PATCH 01/41] libcman: fix bad flags check In-Reply-To: <1322043360-17037-1-git-send-email-fdinitto@redhat.com> References: <1322043360-17037-1-git-send-email-fdinitto@redhat.com> Message-ID: List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Spotted by Coverity Scan Signed-off-by: Fabio M. Di Nitto --- :100644 100644 a89c731... 9ea82c1... M cman/lib/libcman.c cman/lib/libcman.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cman/lib/libcman.c b/cman/lib/libcman.c index a89c731..9ea82c1 100644 --- a/cman/lib/libcman.c +++ b/cman/lib/libcman.c @@ -467,7 +467,7 @@ int cman_dispatch(cman_handle_t handle, int flags) len = smsg->msg->length; free(smsg->msg); free(smsg); - if (res || (flags & CMAN_DISPATCH_ONE)) + if (res || (flags & CMAN_DISPATCH_TYPE_MASK) == CMAN_DISPATCH_ONE) break; else continue; @@ -481,7 +481,7 @@ int cman_dispatch(cman_handle_t handle, int flags) len = smsg->msg->length; free(smsg->msg); free(smsg); - if (res || (flags & CMAN_DISPATCH_ONE)) + if (res || (flags & CMAN_DISPATCH_TYPE_MASK) == CMAN_DISPATCH_ONE) break; else continue; @@ -495,7 +495,7 @@ int cman_dispatch(cman_handle_t handle, int flags) len = smsg->msg->length; free(smsg->msg); free(smsg); - if (res || (flags & CMAN_DISPATCH_ONE)) + if (res || (flags & CMAN_DISPATCH_TYPE_MASK) == CMAN_DISPATCH_ONE) break; else continue; -- 1.7.4.4