aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-bssgp.c
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2004-12-12 16:46:09 +0000
committerAnders Broman <anders.broman@ericsson.com>2004-12-12 16:46:09 +0000
commite0245dbffdc59947de97adb0402cb113bda8c552 (patch)
treecdf898bfbf5903a16d2dcfc41348ca8d6ccc50b9 /epan/dissectors/packet-bssgp.c
parentf88578cbc018e283fa13b7b7679deaf353ed661d (diff)
Add IMSI to the tree if it's built.
svn path=/trunk/; revision=12727
Diffstat (limited to 'epan/dissectors/packet-bssgp.c')
-rw-r--r--epan/dissectors/packet-bssgp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/epan/dissectors/packet-bssgp.c b/epan/dissectors/packet-bssgp.c
index 0df8caf57b..2c1763a8cb 100644
--- a/epan/dissectors/packet-bssgp.c
+++ b/epan/dissectors/packet-bssgp.c
@@ -424,7 +424,7 @@ get_bit_field_label(guint16 value, guint16 value_mask, guint16 num_bits) {
g_assert(num_bits <= MAX_NUM_BITS);
for (i = 0; i < num_bits; i++) {
- bit_mask = pow(2, i);
+ bit_mask = (guint16)pow(2, i);
if (value_mask & bit_mask) {
label[num_bits - 1 - i] = (value & bit_mask) ? '1' : '0';
}
@@ -1280,9 +1280,9 @@ decode_mobile_identity(bssgp_ie_t *ie, build_info_t *bi, int ie_start_offset) {
hf_id = -1;
break;
}
- /* This does not work ??
- proto_tree_add_string(tf, hf_id, bi->tvb, 0, num_digits, digits_str);
- */
+ if (tf)
+ proto_tree_add_string(tf, hf_id, bi->tvb, 0, num_digits, digits_str);
+
}
if (check_col(bi->pinfo->cinfo, COL_INFO)) {
col_append_sep_fstr(bi->pinfo->cinfo, COL_INFO, BSSGP_SEP, "%s %s",