aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/ascend.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2000-11-19 03:47:36 +0000
committerGuy Harris <guy@alum.mit.edu>2000-11-19 03:47:36 +0000
commit4933cc340fe6e4d53eb8f1cd447080616bc72f83 (patch)
treea05660c64ec8ec13efb3259cb9df89693d13ddf0 /wiretap/ascend.c
parentea9409cb041dd2119b328e7848e4946afc654816 (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. svn path=/trunk/; revision=2667
Diffstat (limited to 'wiretap/ascend.c')
-rw-r--r--wiretap/ascend.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/wiretap/ascend.c b/wiretap/ascend.c
index 5e0b3e29c5..7ce6897dd6 100644
--- a/wiretap/ascend.c
+++ b/wiretap/ascend.c
@@ -1,6 +1,6 @@
/* ascend.c
*
- * $Id: ascend.c,v 1.21 2000/11/12 08:45:28 guy Exp $
+ * $Id: ascend.c,v 1.22 2000/11/19 03:47:35 guy Exp $
*
* Wiretap Library
* Copyright (c) 1998 by Gilbert Ramirez <gram@xiexie.org>
@@ -257,6 +257,7 @@ static gboolean ascend_read(wtap *wth, int *err, int *data_offset)
file_seek(wth->fh, wth->capture.ascend->next_packet_seek_start, SEEK_SET);
offset = ascend_seek(wth, ASCEND_MAX_SEEK);
if (offset == -1) {
+ *err = 0; /* XXX - assume, for now, that it's an EOF */
return FALSE;
}
if (! parse_ascend(wth->fh, buf, &wth->pseudo_header.ascend, &header, 0)) {