summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>1997-12-23 18:30:18 +0100
committerWerner Koch <wk@gnupg.org>1997-12-23 18:30:18 +0100
commitc351df1dc5294dfd81619fea3c1ff6a7e25ba774 (patch)
treeb0fa86a4d1455e53c3a51d696eac51abe0308b0d /util
parentNow created by config.links (diff)
downloadgnupg2-c351df1dc5294dfd81619fea3c1ff6a7e25ba774.tar.xz
gnupg2-c351df1dc5294dfd81619fea3c1ff6a7e25ba774.zip
changed configuration stuff, replaced some Makefile.am by distfiles.
Diffstat (limited to 'util')
-rw-r--r--util/iobuf.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/util/iobuf.c b/util/iobuf.c
index b4b9c195e..58b0d7785 100644
--- a/util/iobuf.c
+++ b/util/iobuf.c
@@ -579,12 +579,14 @@ underflow(IOBUF a)
size_t dummy_len;
/* and tell the filter to free it self */
- if( (rc = a->filter(a->filter_ov, IOBUFCTRL_FREE, a->chain,
- NULL, &dummy_len)) )
- log_error("IOBUFCTRL_FREE failed: %s\n", g10_errstr(rc) );
- a->filter = NULL;
- a->desc = NULL;
- a->filter_ov = NULL;
+ if( a->filter != file_filter ) {
+ if( (rc = a->filter(a->filter_ov, IOBUFCTRL_FREE, a->chain,
+ NULL, &dummy_len)) )
+ log_error("IOBUFCTRL_FREE failed: %s\n", g10_errstr(rc) );
+ a->filter = NULL;
+ a->desc = NULL;
+ a->filter_ov = NULL;
+ }
a->filter_eof = 1;
}