Commit 511ad098 authored by Ryan Tandy's avatar Ryan Tandy Committed by Quanah Gibson-Mount
Browse files

ITS#9206 Initialize libsodium before calling its functions

parent 8ff81631
......@@ -175,6 +175,12 @@ int init_module( int argc, char *argv[] )
{
int i;
#ifndef SLAPD_ARGON2_USE_ARGON2
if ( sodium_init() == -1 ) {
return -1;
}
#endif
for ( i=0; i < argc; i++ ) {
char *p;
unsigned long value;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment