dedup

deduplicating backup program
git clone git://git.2f30.org/dedup.git
Log | Files | Refs | README | LICENSE

commit 4254c18ccefe1aec0ed1bae902202e0ca5f8ad10
parent 0bf61ad5efda6cffccf715d49f109d136c74931e
Author: sin <sin@2f30.org>
Date:   Sun, 19 May 2019 21:30:52 +0300

Call sodium_init in beopen()

Diffstat:
Mbencrypt.c | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/bencrypt.c b/bencrypt.c @@ -157,6 +157,11 @@ beopen(struct bctx *bctx, char *path, int flags, int mode) return -1; } + if (sodium_init() < 0) { + seterr("sodium_init: failed"); + return -1; + } + bctx->ectx = calloc(1, sizeof(struct ectx)); if (bctx->ectx == NULL) { seterr("calloc: %s", strerror(errno));