From a0926f4c82a33c94b0475c00f4a2cd31ec7c3ae7 Mon Sep 17 00:00:00 2001 From: TLINDEN Date: Sat, 18 Apr 2015 20:26:31 +0200 Subject: [PATCH] calling sodium_init() from ptx_new() since required for everything anyway --- libpcp/context.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libpcp/context.c b/libpcp/context.c index 39bdecd..16145b0 100644 --- a/libpcp/context.c +++ b/libpcp/context.c @@ -40,6 +40,8 @@ PCPCTX *ptx_new() { p->pcppubkey_hash = NULL; p->pcpkeysig_hash = NULL; + sodium_init(); + return p; }