diff options
author | Werner Koch <wk@gnupg.org> | 1997-12-23 18:30:18 +0100 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 1997-12-23 18:30:18 +0100 |
commit | c351df1dc5294dfd81619fea3c1ff6a7e25ba774 (patch) | |
tree | b0fa86a4d1455e53c3a51d696eac51abe0308b0d /util/iobuf.c | |
parent | Now created by config.links (diff) | |
download | gnupg2-c351df1dc5294dfd81619fea3c1ff6a7e25ba774.tar.xz gnupg2-c351df1dc5294dfd81619fea3c1ff6a7e25ba774.zip |
changed configuration stuff, replaced some Makefile.am by distfiles.
Diffstat (limited to 'util/iobuf.c')
-rw-r--r-- | util/iobuf.c | 14 |
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; } |