From 9d1aa894a1c6253b88fa30333e9710bfc6e7f8c1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Blin?=
 <sebastien.blin@savoirfairelinux.com>
Date: Fri, 26 Aug 2022 11:38:46 -0400
Subject: [PATCH] sync_module: send initialized buffer

Change-Id: I8bdd1edef75f728464728644c159777e77d7f7d8
---
 src/jamidht/sync_module.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/jamidht/sync_module.cpp b/src/jamidht/sync_module.cpp
index 017858dc70..61dbce5afa 100644
--- a/src/jamidht/sync_module.cpp
+++ b/src/jamidht/sync_module.cpp
@@ -66,6 +66,7 @@ SyncModule::Impl::syncInfos(const std::shared_ptr<ChannelSocket>& socket)
         if (info->contacts) {
             SyncMsg msg;
             msg.ds = info->contacts->getSyncData();
+            msgpack::pack(buffer, msg);
             socket->write(reinterpret_cast<const unsigned char*>(buffer.data()), buffer.size(), ec);
             if (ec) {
                 JAMI_ERR("%s", ec.message().c_str());
-- 
GitLab