summaryrefslogtreecommitdiffstats
path: root/src/methods/null
diff options
context:
space:
mode:
Diffstat (limited to 'src/methods/null')
-rw-r--r--src/methods/null/null.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/methods/null/null.c b/src/methods/null/null.c
index 3062fcf..71191de 100644
--- a/src/methods/null/null.c
+++ b/src/methods/null/null.c
@@ -55,7 +55,7 @@ static size_t method_key_length(const fastd_method_t *method UNUSED) {
/** Initiates a new null session */
static fastd_method_session_state_t* method_session_init(const fastd_method_t *method UNUSED, const uint8_t *secret UNUSED, bool initiator) {
- fastd_method_session_state_t *session = malloc(sizeof(fastd_method_session_state_t));
+ fastd_method_session_state_t *session = fastd_new(fastd_method_session_state_t);
session->valid = true;
session->initiator = initiator;