diff options
author | Christian Pointner <equinox@anytun.org> | 2008-02-25 19:00:43 +0000 |
---|---|---|
committer | Christian Pointner <equinox@anytun.org> | 2008-02-25 19:00:43 +0000 |
commit | 619dec51f630116843a7d83c0c085abc7e3da688 (patch) | |
tree | 89536dff865336963d12ae7a3a5292509616c126 /buffer.cpp | |
parent | bugfix with packet length (diff) |
fixed resize issue with buffer->xPacket
Diffstat (limited to 'buffer.cpp')
-rw-r--r-- | buffer.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -161,6 +161,8 @@ void Buffer::setLength(u_int32_t new_length) old_buf = &buf_[old_length]; std::memset(old_buf, 0, real_length_ - old_length); + + reinit(); } else length_ = new_length; |