aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/libmdsserver/mds-message.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libmdsserver/mds-message.c b/src/libmdsserver/mds-message.c
index 5f2c536..b04679a 100644
--- a/src/libmdsserver/mds-message.c
+++ b/src/libmdsserver/mds-message.c
@@ -535,7 +535,7 @@ int mds_message_unmarshal(mds_message_t* restrict this, char* restrict data)
/* Fill the header list, payload and read buffer. */
- for (i = 0; i < this->header_count; i++)
+ for (i = 0; i < header_count; i++)
{
n = strlen(data) + 1;
fail_if (xmemdup(this->headers[i], data, n, char));