aboutsummaryrefslogtreecommitdiff
path: root/src/outbound_group_session.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/outbound_group_session.c')
-rw-r--r--src/outbound_group_session.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/outbound_group_session.c b/src/outbound_group_session.c
index fadf949..cf7d32c 100644
--- a/src/outbound_group_session.c
+++ b/src/outbound_group_session.c
@@ -22,6 +22,7 @@
#include "olm/cipher.h"
#include "olm/error.h"
#include "olm/megolm.h"
+#include "olm/memory.h"
#include "olm/message.h"
#include "olm/pickle.h"
#include "olm/pickle_encoding.h"
@@ -63,7 +64,7 @@ const char *olm_outbound_group_session_last_error(
size_t olm_clear_outbound_group_session(
OlmOutboundGroupSession *session
) {
- memset(session, 0, sizeof(OlmOutboundGroupSession));
+ _olm_unset(session, sizeof(OlmOutboundGroupSession));
return sizeof(OlmOutboundGroupSession);
}