path: root/file.c
diff options
authorUlf Lamping <ulf.lamping@web.de>2005-04-12 00:54:52 +0000
committerUlf Lamping <ulf.lamping@web.de>2005-04-12 00:54:52 +0000
commit06ef0a3b5234f99d64ff11819b5182d3fb12dd78 (patch)
tree7b034594d6fb03ec669868485bc6475f1d66006d /file.c
parent61ccc8baf1f786dc42c7f3e86a564d151974cbb3 (diff)
it should now be possible to use "Update packets in real time" even if used with one of the "Multiple files" option.
If this is used together with an option where input files changes too fast (e.g. new file every second), capturing will be (hopefully) stopped. I've replaced the former capture pipe message format into a somewhat more general format to remove a lot of confusion. svn path=/trunk/; revision=14054
Diffstat (limited to 'file.c')
1 files changed, 6 insertions, 0 deletions
diff --git a/file.c b/file.c
index e90ae240a3..4beb1f2065 100644
--- a/file.c
+++ b/file.c
@@ -557,6 +557,12 @@ cf_finish_tail(capture_file *cf, int *err)
int fd;
struct stat cf_stat;
+ if(cf->wth == NULL) {
+ cf_close(cf);
+ return CF_READ_ERROR;
+ }
while ((wtap_read(cf->wth, err, &err_info, &data_offset))) {