Diff between 03987faa52806511bed3d199bb77cfa22be39679 and f6eccfa66baf9897b805a5749a489a13ca7cd96a

Changed Files

File Additions Deletions Status
mesh/net.c +1 -0 modified

Full Patch

diff --git a/mesh/net.c b/mesh/net.c
index 6acd9bc..aa220f7 100644
--- a/mesh/net.c
+++ b/mesh/net.c
@@ -1165,6 +1165,7 @@ static struct mesh_friend_msg *mesh_friend_msg_new(uint8_t seg_max)
 
 		size += (seg_max + 1) * sizeof(struct mesh_friend_seg_12);
 		frnd_msg = l_malloc(size);
+		memset(frnd_msg, 0, size);
 	} else
 		frnd_msg = l_new(struct mesh_friend_msg, 1);