aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/toshiba.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2000-11-19 03:47:36 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2000-11-19 03:47:36 +0000
commit8e27b1863e9a2ec683d22b13dd1f37c6a7f02c7c (patch)
treea05660c64ec8ec13efb3259cb9df89693d13ddf0 /wiretap/toshiba.c
parentd5706016f299b0737c13d77abef33937fe0c61b3 (diff)
"wtap_read()" must *always* set "*err" when it returns FALSE - if it's
just an EOF, it should set "*err" to 0. Fix up a bunch of read routines for various capture file types to set "*err" appropriately. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@2667 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'wiretap/toshiba.c')
-rw-r--r--wiretap/toshiba.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/wiretap/toshiba.c b/wiretap/toshiba.c
index d0b6d37c3f..de53d08bb6 100644
--- a/wiretap/toshiba.c
+++ b/wiretap/toshiba.c
@@ -1,6 +1,6 @@
/* toshiba.c
*
- * $Id: toshiba.c,v 1.13 2000/09/21 04:41:37 gram Exp $
+ * $Id: toshiba.c,v 1.14 2000/11/19 03:47:36 guy Exp $
*
* Wiretap Library
* Copyright (c) 1998 by Gilbert Ramirez <gram@xiexie.org>
@@ -209,6 +209,7 @@ static gboolean toshiba_read(wtap *wth, int *err, int *data_offset)
/* Find the next packet */
offset = toshiba_seek_next_packet(wth);
if (offset < 1) {
+ *err = 0; /* XXX - assume, for now, that it's an EOF */
return FALSE;
}