Unused Value at packet-icq.c:1147 |
No properties have been set. edit properties |
Jump to warning location ↓ | warning details... |
| |
icqv5_srv_user_offline (/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-icq.c)![]() | ||||||
![]() | ||||||
1137 | icqv5_srv_user_offline(proto_tree* tree,/* Tree to put the data in */ | |||||
1138 | tvbuff_t *tvb, /* Tvbuff with packet */ | |||||
1139 | int offset, /* Offset from the start of the packet to the content */ | |||||
1140 | int size) /* Number of chars left to do */ | |||||
1141 | { | |||||
1142 | proto_tree* subtree; | |||||
1143 | proto_item* ti; | |||||
1144 | ||||||
1145 | if (tree) { | |||||
1146 | if (size < SRV_USER_OFFLINE_UIN + 4) { | |||||
1147 | ti = proto_tree_add_text(tree, tvb, offset, size,
| |||||
1148 | "Body (%d bytes, should be %d)", size, | |||||
1149 | SRV_USER_OFFLINE_UIN + 4); | |||||
1150 | return; | |||||
1151 | } | |||||
1152 | ti = proto_tree_add_text(tree, tvb, offset, SRV_USER_OFFLINE_UIN + 4, | |||||
1153 | "Body"); | |||||
1154 | subtree = proto_item_add_subtree(ti, ett_icq_body); | |||||
1155 | proto_tree_add_text(subtree, tvb, offset + SRV_USER_OFFLINE_UIN, 4, | |||||
1156 | "UIN: %u", | |||||
1157 | tvb_get_letohl(tvb, offset + SRV_USER_OFFLINE)); | |||||
1158 | } | |||||
1159 | } | |||||
![]() |