diff --git a/src/zmq/certificate.cpp b/src/zmq/certificate.cpp index 4de25a13..28f98a7b 100644 --- a/src/zmq/certificate.cpp +++ b/src/zmq/certificate.cpp @@ -79,7 +79,7 @@ bool certificate::create(config::sodium& out_public, { // Loop until neither key's base85 encoding includes the # character. // This ensures that the value can be used in libbitcoin settings files. - for (uint8_t attempt = 0; attempt <= max_uint8; attempt++) + for (uint8_t attempt = 0; attempt < max_uint8; attempt++) { char public_key[zmq_encoded_key_size + 1] = { 0 }; char private_key[zmq_encoded_key_size + 1] = { 0 };