Text   |  XML   |  ReML   |   Visible Warnings:

Redundant Condition  at airopeek9.c:572

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

airopeekv9_seek_read

(/home/sate/Testcases/c/cve/wireshark-1.2.0/wiretap/airopeek9.c)expand/collapse
Show more  
 562  airopeekv9_seek_read(wtap *wth, gint64 seek_off,
 563      union wtap_pseudo_header *pseudo_header, guchar *pd, int length,
 564      int *err, gchar **err_info)
 565  {
 566      hdr_info_t hdr_info;
 567   
 568      if (file_seek(wth->random_fh, seek_off, SEEK_SET, err) == -1)
 569          return FALSE;
 570   
 571      /* Process the packet header. */
 572      if (airopeekv9_process_header(wth->random_fh, &hdr_info, err, err_info) == -1)
 573          return FALSE;
 574   
 575      switch (wth->file_encap) {
 576   
 577      case WTAP_ENCAP_IEEE_802_11_WITH_RADIO:
 578          pseudo_header->ieee_802_11 = hdr_info.ieee_802_11;
 579          if (wth->capture.airopeek9->has_fcs)
 580              pseudo_header->ieee_802_11.fcs_len = 4;
 581          else 
 582              pseudo_header->ieee_802_11.fcs_len = 0;
 583          break;
 584   
 585      case WTAP_ENCAP_ETHERNET:
 586          pseudo_header->eth.fcs_len = 0;
 587          break;
 588      }
 589   
 590      /*
 591       * XXX - should "errno" be set in "wtap_file_read_expected_bytes()"?
 592       */
 593      errno = WTAP_ERR_CANT_READ;
 594      wtap_file_read_expected_bytes(pd, length, wth->random_fh, err);
 595      return TRUE;
 596  }
Show more  




Change Warning 949.29826 : Redundant Condition

Priority:
State:
Finding:
Owner:
Note: