summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2003-02-24 01:48:16 +0000
committerweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2003-02-24 01:48:16 +0000
commitb49c924f81e6715a2b4f4542f59974a2fdb3f0a4 (patch)
tree77df28b18296f9d2d58835ecb4d20f81c49f2d6b
parent5216511e367239a01cab40b0c8d297f330ae2341 (diff)
downloadcryptopp-b49c924f81e6715a2b4f4542f59974a2fdb3f0a4.tar.gz
fixed FILTER_END bug
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@32 57ff6487-cd31-0410-9ec3-f628ee90f5f0
-rw-r--r--filters.cpp2
-rw-r--r--fltrimpl.h4
2 files changed, 4 insertions, 2 deletions
diff --git a/filters.cpp b/filters.cpp
index 007b1d7..d2b08fe 100644
--- a/filters.cpp
+++ b/filters.cpp
@@ -145,7 +145,7 @@ unsigned int MeterFilter::Put2(const byte *begin, unsigned int length, int messa
}
FILTER_OUTPUT(1, begin, length, messageEnd);
- FILTER_END;
+ FILTER_END_NO_MESSAGE_END;
}
bool MeterFilter::IsolatedMessageSeriesEnd(bool blocking)
diff --git a/fltrimpl.h b/fltrimpl.h
index 6c37bfa..a35e68b 100644
--- a/fltrimpl.h
+++ b/fltrimpl.h
@@ -17,11 +17,13 @@
FILTER_END_NO_MESSAGE_END_NO_RETURN \
return 0;
+/*
#define FILTER_END \
case -1: \
- if (Output(-1, NULL, 0, messageEnd, blocking)) \
+ if (messageEnd && Output(-1, NULL, 0, messageEnd, blocking)) \
return 1; \
FILTER_END_NO_MESSAGE_END
+*/
#define FILTER_OUTPUT2(site, statement, output, length, messageEnd) \
{\