Text   |  XML   |  ReML   |   Visible Warnings:

Uninitialized Variable  at packet-ldap.c:3859

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

dissect_NetLogon_PDU

(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-ldap.c)expand/collapse
Show more  
 3820  static void dissect_NetLogon_PDU(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree)
 3821  {
 3822    int old_offset, offset=0;
 3823    char str[256];
 3824    guint16 itype;
 3825    guint16 len;
 3826    guint32 version;
 3827    const char *fn;
 3828    int fn_len;
 3829    guint16 bc;
 3830    proto_item *item;
 3831   
 3832    ldm_tree = NULL;
 3833   
 3834   
 3835    /* Get the length of the buffer */
 3836[+]   len=tvb_length_remaining(tvb,offset);
 3837   
 3838    /* check the len if it is to small return */
 3839    if (len < 10) return;
 3840     
 3841    /* Type */
 3842[+]   itype = tvb_get_letohs(tvb, offset);
 3843   
 3844    /* get the version number from the end of the buffer, as the  
 3845       length is variable and the version determines what fields
 3846           need to be decoded */
 3847     
 3848    version = tvb_get_letohl(tvb,len-8);
 3849     
 3850    switch(itype){
 3851                   
 3852                  case LOGON_SAM_LOGON_RESPONSE:  
 3853                          /* Type */
 3854                          proto_tree_add_uint_format(tree, hf_mscldap_netlogon_type, tvb,offset, 2, itype,"Type: LOGON_SAM_LOGON_RESPONSE (19)" );
 3855                          offset = 2;
 3856   
 3857                          /* logon server name */
 3858[+]                         fn = get_unicode_or_ascii_string(tvb,&offset,TRUE,&fn_len,FALSE,FALSE,&bc);
 3859                          proto_tree_add_string(tree, hf_mscldap_nb_hostname, tvb,offset, fn_len, fn);
Show more  




Change Warning 1294.33000 : Uninitialized Variable

Priority:
State:
Finding:
Owner:
Note: