Text   |  XML   |  ReML   |   Visible Warnings:

Null Pointer Dereference  at packet-msproxy.c:229

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

msproxy_sub_dissector

(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-msproxy.c)expand/collapse
Show more  
 184  static void msproxy_sub_dissector( tvbuff_t *tvb, packet_info *pinfo,
 185                  proto_tree *tree) {
 186   
 187  /* Conversation dissector called from TCP or UDP dissector. Decode and  */
 188  /* display the msproxy header, the pass the rest of the data to the tcp */
 189  /* or udp port decode routine to  handle the payload.                   */
 190   
 191          guint32 *ptr;
 192          redirect_entry_t *redirect_info;
 193          conversation_t *conversation;
 194          proto_tree      *msp_tree;
 195          proto_item      *ti;
 196   
 197          conversation = find_conversation( pinfo->fd->num, &pinfo->src, &pinfo->dst,
 198[+]                 pinfo->ptype, pinfo->srcport, pinfo->destport, 0);
 199   
 200          DISSECTOR_ASSERT( conversation);        /* should always find a conversation */
 201   
 202          redirect_info = conversation_get_proto_data(conversation,
 203[+]                 proto_msproxy);
 204   
 205[+]         if (check_col(pinfo->cinfo, COL_PROTOCOL))
 206                  col_set_str(pinfo->cinfo, COL_PROTOCOL, "MS Proxy");
 207   
 208[+]         if (check_col(pinfo->cinfo, COL_INFO))
 209                  col_set_str(pinfo->cinfo, COL_INFO,
 210                          (( redirect_info->proto == PT_TCP) ? "TCP stream" :
 211                           "UDP packets"));
 212   
 213          if ( tree) {
 214                  ti = proto_tree_add_item( tree, proto_msproxy, tvb, 0, 0,
 215                          FALSE );
 216   
 217                  msp_tree = proto_item_add_subtree(ti, ett_msproxy);
 218   
 219                  proto_tree_add_uint( msp_tree, hf_msproxy_dstport, tvb, 0, 0,
 220                          redirect_info->remote_port);
 221   
 222                  proto_tree_add_ipv4( msp_tree, hf_msproxy_dstaddr, tvb, 0, 0,
 223                          redirect_info->remote_addr);
 224   
 225          }
 226   
 227  /* set pinfo->{src/dst port} and call the UDP sub-dissector lookup */
 228   
 229          if ( pinfo->srcport == redirect_info->clnt_port)
Show more  




Change Warning 2762.32350 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: