diff options
author | Guy Harris <guy@alum.mit.edu> | 2014-09-24 20:32:26 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2014-09-25 03:33:24 +0000 |
commit | 38ae61f159472630ad659d4e0d00ecc4dcd9dd9e (patch) | |
tree | 9bac44790915291e2a4be9b59c9d37a2093e2827 /wiretap/radcom.c | |
parent | 42018cf08a7512b9d2dc142158b00078ff274e0b (diff) |
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>
Diffstat (limited to 'wiretap/radcom.c')
-rw-r--r-- | wiretap/radcom.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wiretap/radcom.c b/wiretap/radcom.c index 1c67c24ddb..024b62c598 100644 --- a/wiretap/radcom.c +++ b/wiretap/radcom.c @@ -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; |