radcom_read_rec() should always read from the file specified by the fh argument.
It's called both from the read and seek-read routines, so it shouldn't always read from the sequential handle. Change-Id: I8cb33b9f5b7219f335b0aeeef29c479916276f89 Reviewed-on: https://code.wireshark.org/review/4276 Reviewed-by: Guy Harris <guy@alum.mit.edu>
This commit is contained in:
parent
42018cf08a
commit
38ae61f159
|
@ -372,7 +372,7 @@ radcom_read_rec(wtap *wth, FILE_T fh, struct wtap_pkthdr *phdr, Buffer *buf,
|
|||
* XXX - is this stuff a pseudo-header?
|
||||
* The direction appears to be in the "hdr.dce" field.
|
||||
*/
|
||||
if (!radcom_read_rec_data(wth->fh, atmhdr, sizeof atmhdr, err,
|
||||
if (!radcom_read_rec_data(fh, atmhdr, sizeof atmhdr, err,
|
||||
err_info))
|
||||
return FALSE; /* Read error */
|
||||
length -= 8;
|
||||
|
|
Loading…
Reference in New Issue