mirror of
https://github.com/zeromq/libzmq.git
synced 2025-03-19 18:03:50 +00:00
Merge pull request #103 from bluca/uninitialised_sockopt
Problem: curve keys getsockopt uninitialised read
This commit is contained in:
commit
4d45ee9440
@ -21,7 +21,7 @@ env:
|
|||||||
before_script:
|
before_script:
|
||||||
- mkdir tmp
|
- mkdir tmp
|
||||||
# libsodium
|
# libsodium
|
||||||
- git clone git://github.com/jedisct1/libsodium.git
|
- git clone --depth 1 -b stable git://github.com/jedisct1/libsodium.git
|
||||||
- ( cd libsodium; ./autogen.sh; ./configure --prefix=${BUILD_PREFIX}; make check; make install )
|
- ( cd libsodium; ./autogen.sh; ./configure --prefix=${BUILD_PREFIX}; make check; make install )
|
||||||
|
|
||||||
# ZMQ stress tests need more open socket (files) than the usual default
|
# ZMQ stress tests need more open socket (files) than the usual default
|
||||||
|
@ -68,6 +68,9 @@ zmq::options_t::options_t () :
|
|||||||
conflate (false),
|
conflate (false),
|
||||||
handshake_ivl (30000)
|
handshake_ivl (30000)
|
||||||
{
|
{
|
||||||
|
memset (curve_public_key, 0, CURVE_KEYSIZE);
|
||||||
|
memset (curve_secret_key, 0, CURVE_KEYSIZE);
|
||||||
|
memset (curve_server_key, 0, CURVE_KEYSIZE);
|
||||||
}
|
}
|
||||||
|
|
||||||
int zmq::options_t::setsockopt (int option_, const void *optval_,
|
int zmq::options_t::setsockopt (int option_, const void *optval_,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user