aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjeikabu <jeikabu@users.noreply.github.com>2020-06-16 21:06:51 +0300
committerGarrett D'Amore <garrett@damore.org>2020-06-16 11:22:10 -0700
commitb12081bebe85dfc02bbc2b23d48458613be20fa2 (patch)
treec6d50c8ff3db7b32b72149e11f7ad35155ee823a /src
parent59301ab3f80991086519124d020edbe94a74615c (diff)
downloadnng-b12081bebe85dfc02bbc2b23d48458613be20fa2.tar.gz
nng-b12081bebe85dfc02bbc2b23d48458613be20fa2.tar.bz2
nng-b12081bebe85dfc02bbc2b23d48458613be20fa2.zip
fix #1252
- nng_msg_clear should only clear the message body and not the head. Add test to verify
Diffstat (limited to 'src')
-rw-r--r--src/core/message.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/core/message.c b/src/core/message.c
index 9241ac65..79031400 100644
--- a/src/core/message.c
+++ b/src/core/message.c
@@ -578,7 +578,6 @@ nni_msg_header_append_u32(nni_msg *m, uint32_t val)
void
nni_msg_clear(nni_msg *m)
{
- m->m_header_len = 0;
nni_chunk_clear(&m->m_body);
}