diff options
author | Guy Harris <guy@alum.mit.edu> | 2014-12-17 16:41:21 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2014-12-18 00:41:43 +0000 |
commit | 6011a047d3cd2aba84e7fdd3bf7e8403a2f3563b (patch) | |
tree | e65e862bc54c08528399d081c5d4d2df128a2b5d /frame_tvbuff.c | |
parent | aa27e665b1d469e54b8cbb9931d5324acdf4dc75 (diff) |
WTAP_ERR_UNWRITABLE_ errors aren't returned by reads or open-for-reading.
Check for them *only* on opening for writing and writes.
Change-Id: I4b537d511ec04bcfc81f69166a2b9a2ee9310067
Reviewed-on: https://code.wireshark.org/review/5827
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'frame_tvbuff.c')
-rw-r--r-- | frame_tvbuff.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/frame_tvbuff.c b/frame_tvbuff.c index c8d2f83a68..cc02722283 100644 --- a/frame_tvbuff.c +++ b/frame_tvbuff.c @@ -58,8 +58,8 @@ frame_read(struct tvb_frame *frame_tvb, struct wtap_pkthdr *phdr, Buffer *buf) * frame_tvb->tvb.length + frame_tvb->offset? */ if (!wtap_seek_read(frame_tvb->wth, frame_tvb->file_off, phdr, buf, &err, &err_info)) { + /* XXX - report error! */ switch (err) { - case WTAP_ERR_UNWRITABLE_ENCAP: case WTAP_ERR_BAD_FILE: g_free(err_info); break; |