commit | 3fa9d24bc30106349aebe9aaa814b3780928decf | [log] [tgz] |
---|---|---|
author | robert <dev-null@apache.org> | Tue Dec 19 22:27:54 2006 +0000 |
committer | robert <dev-null@apache.org> | Tue Dec 19 22:27:54 2006 +0000 |
tree | bd838a9708f8ee255a49c77e41d0f36858cf3f8f | |
parent | 2abc9dfd5901bbf8cf689c1edad67567b06070aa [diff] |
fixed a bug in TFramedTransport where it was checking a size for nonzero after byte swapping it. reviewed: mcslee revert: yes test: run a C++ client and server with framed transport git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664899 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/lib/cpp/src/transport/TTransportUtils.cpp b/lib/cpp/src/transport/TTransportUtils.cpp index 02454e3..9367eb5 100644 --- a/lib/cpp/src/transport/TTransportUtils.cpp +++ b/lib/cpp/src/transport/TTransportUtils.cpp
@@ -164,7 +164,7 @@ transport_->write((const uint8_t*)&sz, 4); // Write frame body - if (sz > 0) { + if (wLen_ > 0) { transport_->write(wBuf_, wLen_); }