Text   |  XML   |  ReML   |   Visible Warnings:

Useless Assignment  at packet-edonkey.c:1015

No properties have been set. | edit properties
Jump to warning location ↓ warning details...
Show Events | Options

dissect_kademlia_hash_hidden

(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-edonkey.c)expand/collapse
Show more  
 1008  static int dissect_kademlia_hash_hidden(tvbuff_t *tvb, packet_info *pinfo _U_,
 1009                                          int offset, proto_tree *tree) {
 1010      proto_item *hidden_item;
 1011      char *hash = ep_alloc(33);
 1012      char hash_part[9];
 1013      int i = 0;
 1014   
 1015      for (i=0; i<=12; i+=4) {
 1016        if (i == 0)
 1017          g_snprintf(hash, 33, "%08X", tvb_get_letohl(tvb, offset));
 1018        else {
 1019          g_snprintf(hash_part, sizeof(hash_part), "%08X", tvb_get_letohl(tvb, offset + i));
 1020          hash = g_strconcat(hash, hash_part, NULL);
 1021        }        
 1022      }
 1023   
 1024      /* <File hash> ::= HASH (16 word MD4 digest) */
 1025      hidden_item = proto_tree_add_string_format_value(tree, hf_kademlia_hash, tvb, offset, 16, hash, "%s", hash);
 1026      PROTO_ITEM_SET_HIDDEN(hidden_item);
 1027   
 1028      return offset+16;
 1029  }
Show more  




Change Warning 2338.31198 : Useless Assignment

Priority:
State:
Finding:
Owner:
Note: