You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by as...@apache.org on 2016/02/02 21:47:45 UTC

[3/3] qpid-proton git commit: PROTON-1043: Fix error in boolean flag check [discovered both by aconway and Coverity)

PROTON-1043: Fix error in boolean flag check
[discovered both by aconway and Coverity)


Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/82274529
Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/82274529
Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/82274529

Branch: refs/heads/master
Commit: 8227452984349b3ab5e69489c7d40b6b4ffbf4f5
Parents: 3b8be92
Author: Andrew Stitcher <as...@apache.org>
Authored: Mon Feb 1 17:41:07 2016 -0500
Committer: Andrew Stitcher <as...@apache.org>
Committed: Tue Feb 2 15:40:13 2016 -0500

----------------------------------------------------------------------
 proton-c/src/messenger/messenger.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/82274529/proton-c/src/messenger/messenger.c
----------------------------------------------------------------------
diff --git a/proton-c/src/messenger/messenger.c b/proton-c/src/messenger/messenger.c
index b08e00a..cd6585b 100644
--- a/proton-c/src/messenger/messenger.c
+++ b/proton-c/src/messenger/messenger.c
@@ -1495,7 +1495,7 @@ int pn_messenger_start(pn_messenger_t *messenger)
   // returned. Currently no attempt is made to check the name part of the
   // address, as the intent here is to fail fast if the addressed host
   // is invalid or unavailable.
-  if (messenger->flags | PN_FLAGS_CHECK_ROUTES) {
+  if (messenger->flags & PN_FLAGS_CHECK_ROUTES) {
     pn_list_t *substitutions = pn_list(PN_WEAKREF, 0);
     pn_transform_get_substitutions(messenger->routes, substitutions);
     for (size_t i = 0; i < pn_list_size(substitutions) && error == 0; i++) {


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org