We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 830b101 commit ca5947bCopy full SHA for ca5947b
src/zmq/certificate.cpp
@@ -79,7 +79,7 @@ bool certificate::create(config::sodium& out_public,
79
{
80
// Loop until neither key's base85 encoding includes the # character.
81
// This ensures that the value can be used in libbitcoin settings files.
82
- while (true)
+ for (uint8_t attempt = 0; attempt < max_uint8; attempt++)
83
84
char public_key[zmq_encoded_key_size + 1] = { 0 };
85
char private_key[zmq_encoded_key_size + 1] = { 0 };
@@ -95,6 +95,8 @@ bool certificate::create(config::sodium& out_public,
95
return out_public;
96
}
97
98
+
99
+ return false;
100
101
102
certificate::operator bool() const
0 commit comments