Text   |  XML   |  ReML   |   Visible Warnings:

Null Pointer Dereference  at wlan_stat_dlg.c:396

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

wlanstat_packet

(/home/sate/Testcases/c/cve/wireshark-1.2.0/gtk/wlan_stat_dlg.c)expand/collapse
Show more  
 360  wlanstat_packet (void *phs, packet_info *pinfo, epan_dissect_t *edt _U_, const void *phi)
 361  {
 362   
 363          wlanstat_t *hs = (wlanstat_t *)phs;
 364          wlan_ep_t *tmp = NULL, *te = NULL;
 365          struct _wlan_hdr *si = (struct _wlan_hdr *) phi;
 366   
 367          if (!hs)
 368                  return (0);
 369   
 370          hs->number_of_packets++;
 371          if (!hs->ep_list) {
 372                  hs->ep_list = alloc_wlan_ep (si, pinfo);
 373                  te = hs->ep_list;
 374          } else {
 375                  for (tmp = hs->ep_list; tmp; tmp = tmp->next) {
 376                          if (((si->type == 0x04) &&
 377                               (((tmp->stats.ssid_len == 0) && (si->stats.ssid_len == 0) &&
 378                                 (strcmp (get_addr_name(&tmp->bssid), "Broadcast") == 0)) ||
 379                                (si->stats.ssid_len != 0 &&
 380                                 (tmp->stats.ssid_len == si->stats.ssid_len) &&
 381                                 (memcmp (tmp->stats.ssid, si->stats.ssid, si->stats.ssid_len) == 0)))) ||
 382                              ((si->type != 0x04) &&
 383                               (!CMP_ADDRESS (&tmp->bssid, &si->bssid)))) {
 384                                  te = tmp;
 385                                  break;
 386                          }
 387                  }
 388   
 389                  if (!te) {
 390[+]                         if ((te = alloc_wlan_ep (si, pinfo))) {
 391                                  te->next = hs->ep_list;
 392                                  hs->ep_list = te;
 393                          }
 394                  }
 395   
 396                  if (!te->probe_req_searched && (si->type != 0x04) && (te->type[0x04] == 0) &&
Show more  




Change Warning 4660.30888 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: