mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-12 10:33:52 +01:00
Merge pull request #1805 from bluca/uninitialised_sockopt
Problem: curve keys getsockopt uninitialised read
This commit is contained in:
commit
df6876abde
@ -78,6 +78,9 @@ zmq::options_t::options_t () :
|
||||
heartbeat_timeout (-1),
|
||||
use_fd (-1)
|
||||
{
|
||||
memset (curve_public_key, 0, CURVE_KEYSIZE);
|
||||
memset (curve_secret_key, 0, CURVE_KEYSIZE);
|
||||
memset (curve_server_key, 0, CURVE_KEYSIZE);
|
||||
#if defined ZMQ_HAVE_VMCI
|
||||
vmci_buffer_size = 0;
|
||||
vmci_buffer_min_size = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user