aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-lbm.c
diff options
context:
space:
mode:
authorMartin Kaiser <wireshark@kaiser.cx>2016-05-17 22:44:47 +0200
committerMichael Mann <mmann78@netscape.net>2016-05-17 23:33:52 +0000
commit20650243d303a064aa47ce47c5f58bc846d5ae5b (patch)
treee9261e07dab03dcede7df2c8094b4d9400a8d649 /epan/dissectors/packet-lbm.c
parent21f798e50f6f641f62b9f56a14abb58da4f5dc4d (diff)
lbm (CID 1201450): result of shift operation is always 0
apply a mask to get the lower 32 bit of a guint64 (there's no need for a right shift) Change-Id: Ibcf685f6e58a5c5c4b96289d0c08e83d019301e7 Reviewed-on: https://code.wireshark.org/review/15489 Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan/dissectors/packet-lbm.c')
-rw-r--r--epan/dissectors/packet-lbm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-lbm.c b/epan/dissectors/packet-lbm.c
index 3383206dca..af969ddf85 100644
--- a/epan/dissectors/packet-lbm.c
+++ b/epan/dissectors/packet-lbm.c
@@ -290,7 +290,7 @@ void lbm_topic_init(void)
static void lbm_topic_build_key(guint32 * key_value, wmem_tree_key_t * key, guint64 channel, guint32 topic_index)
{
key_value[LBM_TOPIC_KEY_ELEMENT_CHANNEL_HIGH] = (guint32) ((channel >> 32) & 0xffffffff);
- key_value[LBM_TOPIC_KEY_ELEMENT_CHANNEL_LOW] = (guint32) ((channel & 0xffffffff) >> 32);
+ key_value[LBM_TOPIC_KEY_ELEMENT_CHANNEL_LOW] = (guint32) (channel & 0xffffffff);
key_value[LBM_TOPIC_KEY_ELEMENT_TOPIC_INDEX] = topic_index;
key[0].length = LBM_TOPIC_KEY_ELEMENT_COUNT;
key[0].key = key_value;