aboutsummaryrefslogtreecommitdiffstats
path: root/src/libmdsserver/mds-message.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libmdsserver/mds-message.c')
-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 5051cb1..4371ec3 100644
--- a/src/libmdsserver/mds-message.c
+++ b/src/libmdsserver/mds-message.c
@@ -228,7 +228,7 @@ int mds_message_read(mds_message_t* restrict this, int fd)
this->stage = 2;
return 0;
}
- if ((this->stage == 1) && (this->payload_size > 0))
+ if ((this->stage == 1) && (this->payload_size > 0)) /* FIXME: next message fails if not LF-terminated. */
{
/* How much of the payload that has not yet been filled. */
size_t need = this->payload_size - this->payload_ptr;