mirror of
https://github.com/PurpleI2P/i2pd-tools.git
synced 2025-08-07 17:59:30 +01:00
o2 flag + fedora depedencies support + #92 issue
This commit is contained in:
parent
314ab73ab5
commit
92989e649a
4 changed files with 51 additions and 48 deletions
9
vain.cpp
9
vain.cpp
|
@ -404,10 +404,7 @@ int main (int argc, char * argv[])
|
|||
{
|
||||
//keys = i2p::data::PrivateKeys::CreateRandomKeys (options.signature);
|
||||
//RAND_bytes( KeyBuf+MutateByte , 90 ); // FoundNonce is
|
||||
|
||||
for (unsigned i = options.threads-1;i--;)
|
||||
delete [] KeyBufs[i];
|
||||
delete [] KeyBufs;
|
||||
DELKEYBUFS(options.threads);
|
||||
std::cout << "(Generate a new keypair) Attempts #" << ++attempts << std::endl;
|
||||
return 1;
|
||||
}
|
||||
|
@ -445,9 +442,7 @@ int main (int argc, char * argv[])
|
|||
if (f)
|
||||
{
|
||||
f.write ((char *)KeyBuf, keys_len);
|
||||
for (unsigned i = options.threads-1;i--;)
|
||||
delete [] KeyBufs[i];
|
||||
delete [] KeyBufs;
|
||||
DELKEYBUFS(options.threads);
|
||||
}
|
||||
else
|
||||
std::cout << "Can't create file " << options.outputpath << std::endl;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue