diff --git a/src/curve_client.cpp b/src/curve_client.cpp index 3b921064..8c8a6d7a 100644 --- a/src/curve_client.cpp +++ b/src/curve_client.cpp @@ -45,8 +45,8 @@ zmq::curve_client_t::curve_client_t (const options_t &options_) : unsigned char tmpbytes[4]; randombytes(tmpbytes, 4); #else - const int si = sodium_init(); - zmq_assert (si == 0); + // todo check return code + sodium_init(); #endif // Generate short-term key pair diff --git a/src/curve_server.cpp b/src/curve_server.cpp index be717adf..49e04de5 100644 --- a/src/curve_server.cpp +++ b/src/curve_server.cpp @@ -50,8 +50,8 @@ zmq::curve_server_t::curve_server_t (session_base_t *session_, unsigned char tmpbytes[4]; randombytes(tmpbytes, 4); #else - const int si = sodium_init(); - zmq_assert (si == 0); + // todo check return code + sodium_init(); #endif // Generate short-term key pair