summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlf Lamping <ulf.lamping@web.de>2006-01-07 01:19:29 +0000
committerUlf Lamping <ulf.lamping@web.de>2006-01-07 01:19:29 +0000
commit76bbd4181b6fbf9184b0c695d5cd8f0d708fa037 (patch)
treeff9e73679c5cac69813d5bdd8d951dfd1bd282d8
parent8a85fa705a52a9ed27f42b9f2843a308b338f773 (diff)
downloadwireshark-76bbd4181b6fbf9184b0c695d5cd8f0d708fa037.tar.gz
don't claim to be an erf file if it isn't (e.g. if the file_read call fails)
I don't know if this is the right way to fix it, but it seems at least better than before svn path=/trunk/; revision=16971
-rw-r--r--wiretap/erf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wiretap/erf.c b/wiretap/erf.c
index 9eb6511ef0..ae5fcc237c 100644
--- a/wiretap/erf.c
+++ b/wiretap/erf.c
@@ -127,7 +127,7 @@ int erf_open(wtap *wth, int *err, gchar **err_info _U_)
if ((*err = file_error(wth->fh)) != 0)
return -1;
else
- break; /* eof */
+ return 0;
}
packet_size = g_ntohs(header.rlen) - sizeof(header);