From 287f2497359e4068342e07cf526eb90ef8e1271b Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Thu, 29 Aug 2019 09:59:04 +0200 Subject: [PATCH] msg: fix intiialization of reserved fields --- lib/formats/msg.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/formats/msg.cpp b/lib/formats/msg.cpp index 44acd2dad..b871cbc4e 100644 --- a/lib/formats/msg.cpp +++ b/lib/formats/msg.cpp @@ -110,6 +110,8 @@ int msg_from_sample(struct msg *msg_in, struct sample *smp, struct vlist *signal { msg_in->type = MSG_TYPE_DATA; msg_in->version = MSG_VERSION; + msg_in->rsvd1 = 0; + msg_in->resv2 = 0; msg_in->length = (uint16_t) smp->length; msg_in->sequence = (uint32_t) smp->sequence; msg_in->ts.sec = smp->ts.origin.tv_sec;